diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-29 23:57:38 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-06-30 04:58:49 +0000 |
commit | 710f41b7aec8e7d35a0da8be332aa289f98942af (patch) | |
tree | b894ef2d3f06a63a85f423b2713a654ea57f9c69 /include/tools/config.hxx | |
parent | 1ca3beae12a7f222c987481e07a544845fc9fd46 (diff) |
Clean String and sal_Bool in tools
Change-Id: I6a92196f33d7a5278c7dcc426112e9c56d582655
Reviewed-on: https://gerrit.libreoffice.org/4627
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'include/tools/config.hxx')
-rw-r--r-- | include/tools/config.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/tools/config.hxx b/include/tools/config.hxx index 64b690fda742..d19cc0dbbb55 100644 --- a/include/tools/config.hxx +++ b/include/tools/config.hxx @@ -28,17 +28,17 @@ struct ImplGroupData; class TOOLS_DLLPUBLIC Config { private: - OUString maFileName; - OString maGroupName; + OUString maFileName; + OString maGroupName; ImplConfigData* mpData; ImplGroupData* mpActGroup; sal_uIntPtr mnDataUpdateId; sal_uInt16 mnLockCount; - sal_Bool mbPersistence; - sal_Bool mbDummy1; + bool mbPersistence; + bool mbDummy1; - TOOLS_DLLPRIVATE sal_Bool ImplUpdateConfig() const; - TOOLS_DLLPRIVATE ImplGroupData* ImplGetGroup() const; + TOOLS_DLLPRIVATE bool ImplUpdateConfig() const; + TOOLS_DLLPRIVATE ImplGroupData* ImplGetGroup() const; public: Config( const OUString& rFileName ); @@ -51,7 +51,7 @@ public: void DeleteGroup(const OString& rGroup); OString GetGroupName(sal_uInt16 nGroup) const; sal_uInt16 GetGroupCount() const; - sal_Bool HasGroup(const OString& rGroup) const; + bool HasGroup(const OString& rGroup) const; OString ReadKey(const OString& rKey) const; OUString ReadKey(const OString& rKey, rtl_TextEncoding eEncoding) const; @@ -62,12 +62,12 @@ public: OString ReadKey(sal_uInt16 nKey) const; sal_uInt16 GetKeyCount() const; - sal_Bool IsLocked() const { return (mnLockCount != 0); } + bool IsLocked() const { return (mnLockCount != 0); } void Flush(); - void EnablePersistence( sal_Bool bPersistence = sal_True ) + void EnablePersistence( bool bPersistence = true ) { mbPersistence = bPersistence; } - sal_Bool IsPersistenceEnabled() const { return mbPersistence; } + bool IsPersistenceEnabled() const { return mbPersistence; } private: TOOLS_DLLPRIVATE Config( const Config& rConfig ); |