freebsd-ports/textproc/cbedic/files/patch-registry.cpp
Peter Pentchev 4238596de3 Snatch kbedic from the jaws of Death in the nick of time... Okay, okay -
the truth is, this is a *long* overdue update to kbedic to use the QT 3
libraries instead of the dead-and-gone QT 2 ones.  This does indeed result
in some duplication of installed dictionaries, since kbedic no longer uses
textproc/bedic-data, but I'll take care of this later.

Break cbedic out into a full-blown port - it's a different version from
kbedic now.  While I'm here, take maintainership of both ports.

Submitted by:	arved (a long, long time ago)
2005-02-15 23:17:45 +00:00

29 lines
1.4 KiB
C++

--- src/registry.cpp.orig Sat Aug 9 19:21:50 2003
+++ src/registry.cpp Sat Aug 9 19:22:52 2003
@@ -79,7 +79,7 @@
//=== Get String =========================================================
// Return the value of key, if missed return default value
//========================================================================
-char *Registry::getString(const char *property, const char *defaultValue = "") {
+char *Registry::getString(const char *property, const char *defaultValue ) {
bool found = false;
char *ret = NULL;
FILE *f;
@@ -113,7 +113,7 @@
//=== Get Int ============================================================
// Return the value of key, if missed return default value
//========================================================================
-int Registry::getInt(const char *property, const int defaultValue = 0) {
+int Registry::getInt(const char *property, const int defaultValue) {
int ret = defaultValue;
char *p;
p = getString(property);
@@ -141,7 +141,7 @@
//=== Get Bool ===========================================================
// Return the value of key, if missed return default value
//========================================================================
-bool Registry::getBool(const char *property, const bool defaultValue = false) {
+bool Registry::getBool(const char *property, const bool defaultValue) {
bool ret = defaultValue;
char *p;
p = getString(property);