summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 17:04:48 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:52 +0100
commita53cb5d7b49c0d4ae298805caea7b0f023612ed2 (patch)
tree35b9b5a6daf985ae39598626f947df632a67df2d /include/svl
parent3c232d2f86f6944a3d86df0d1f710491cee1b064 (diff)
Use bool
Change-Id: I38f7ec288b907e889c71821cfbfac46a9688ba0c
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/itempool.hxx4
-rw-r--r--include/svl/undo.hxx7
2 files changed, 4 insertions, 7 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 98f8a01f426a..8f380da9d233 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -216,9 +216,9 @@ public:
void SetFileFormatVersion( sal_uInt16 nFileFormatVersion );
bool IsCurrentVersionLoading() const;
- static int IsWhich(sal_uInt16 nId) {
+ static bool IsWhich(sal_uInt16 nId) {
return nId && nId <= SFX_WHICH_MAX; }
- static int IsSlot(sal_uInt16 nId) {
+ static bool IsSlot(sal_uInt16 nId) {
return nId && nId > SFX_WHICH_MAX; }
static const SfxItemPool* GetStoringPool();
diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx
index 00522c67451c..8da6edf2e977 100644
--- a/include/svl/undo.hxx
+++ b/include/svl/undo.hxx
@@ -220,11 +220,8 @@ namespace svl
class SAL_NO_VTABLE IUndoManager
{
public:
- enum
- {
- CurrentLevel = true,
- TopLevel = false
- };
+ static bool const CurrentLevel = true;
+ static bool const TopLevel = false;
virtual ~IUndoManager() { };