summaryrefslogtreecommitdiff
path: root/textproc/cbedic/files/patch-registry.cpp
blob: ea643ccdf73c1dff3fb3fb961d2676def4621464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- 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);