summaryrefslogtreecommitdiff
path: root/ACE/ace/Configuration.h
diff options
context:
space:
mode:
authorLike Ma <likemartinma@gmail.com>2019-11-06 17:24:20 +0800
committerLike Ma <likemartinma@gmail.com>2019-11-06 17:24:20 +0800
commit9a1af321f712858b566cf4de8c1599003a779568 (patch)
treeddaecc1ba1fd5675e24c68f6a721f9caa98dc4a0 /ACE/ace/Configuration.h
parente90e6fd00df1f33823155e7dbed3030d45c46554 (diff)
downloadATCD-9a1af321f712858b566cf4de8c1599003a779568.tar.gz
Change all create arguments to bool in Configuration.{h,cpp}
Diffstat (limited to 'ACE/ace/Configuration.h')
-rw-r--r--ACE/ace/Configuration.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/ACE/ace/Configuration.h b/ACE/ace/Configuration.h
index 0f1f1b896e5..0179236a6f4 100644
--- a/ACE/ace/Configuration.h
+++ b/ACE/ace/Configuration.h
@@ -158,7 +158,7 @@ public:
*
* @param base Existing section in which to open the named section.
* @param sub_section Name of the section to open.
- * @param create If zero, the named section must exist. If non-zero,
+ * @param create If false, the named section must exist, otherwise
* the named section will be created if it does not exist.
* @param result Reference; receives the section key for the new
* section.
@@ -168,7 +168,7 @@ public:
*/
virtual int open_section (const ACE_Configuration_Section_Key &base,
const ACE_TCHAR *sub_section,
- int create,
+ bool create,
ACE_Configuration_Section_Key& result) = 0;
/// Removes a named section.
@@ -355,7 +355,7 @@ public:
int expand_path (const ACE_Configuration_Section_Key& key,
const ACE_TString& path_in,
ACE_Configuration_Section_Key& key_out,
- int create = 1);
+ bool create = true);
/**
* Determine if the contents of this object is the same as the
@@ -461,7 +461,7 @@ public:
virtual int open_section (const ACE_Configuration_Section_Key& base,
const ACE_TCHAR* sub_section,
- int create,
+ bool create,
ACE_Configuration_Section_Key& result);
virtual int remove_section (const ACE_Configuration_Section_Key& key,
@@ -521,7 +521,7 @@ public:
*/
static HKEY resolve_key (HKEY hKey,
const ACE_TCHAR* path,
- int create = 1,
+ bool create = true,
u_long security_access = KEY_ALL_ACCESS);
virtual bool operator== (const ACE_Configuration_Win32Registry &rhs) const;
virtual bool operator!= (const ACE_Configuration_Win32Registry &rhs) const;
@@ -812,7 +812,7 @@ public:
virtual int open_section (const ACE_Configuration_Section_Key& base,
const ACE_TCHAR* sub_section,
- int create, ACE_Configuration_Section_Key& result);
+ bool create, ACE_Configuration_Section_Key& result);
virtual int remove_section (const ACE_Configuration_Section_Key& key,
const ACE_TCHAR* sub_section,
@@ -864,8 +864,8 @@ public:
private:
/// @a sub_section may not contain path separators
int open_simple_section (const ACE_Configuration_Section_Key &base,
- const ACE_TCHAR *sub_section,
- int create, ACE_Configuration_Section_Key &result);
+ const ACE_TCHAR *sub_section,
+ bool create, ACE_Configuration_Section_Key &result);
/// Adds a new section
int add_section (const ACE_Configuration_Section_Key &base,
const ACE_TCHAR *sub_section,