summaryrefslogtreecommitdiffstats
path: root/basctl/source/basicide/bastype2.hxx
diff options
context:
space:
mode:
authorUray M. János <uray.janos@gmail.com>2012-09-02 16:21:08 +0200
committerAndras Timar <atimar@suse.com>2012-09-07 11:20:48 +0200
commit81f72a3c3a30ef00dfb03bd7fab148d2fcf3e4f8 (patch)
treed5586410e1f0d6b7413f1cab952c76c1978e0a7f /basctl/source/basicide/bastype2.hxx
parentFix for docking property browser (diff)
downloadcore-81f72a3c3a30ef00dfb03bd7fab148d2fcf3e4f8.tar.gz
core-81f72a3c3a30ef00dfb03bd7fab148d2fcf3e4f8.zip
Cleanup in basctl (raw pointers)
Lots of raw pointers have been converted to boost::scoped_ptr to reduce the number of 'delete's and the possibility of memory leaks. Some pointers have been converted to references, to reduce the needless checking for nullptrs, and so simplifying the code. Also some #define-s have been converted to C++ constants or enumerations. Change-Id: Ifbeb78f744bac7a96c8a446ff4db90dedf85fe26
Diffstat (limited to 'basctl/source/basicide/bastype2.hxx')
-rw-r--r--basctl/source/basicide/bastype2.hxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/basctl/source/basicide/bastype2.hxx b/basctl/source/basicide/bastype2.hxx
index 0178fa829d0d..acd531f60f4a 100644
--- a/basctl/source/basicide/bastype2.hxx
+++ b/basctl/source/basicide/bastype2.hxx
@@ -51,9 +51,12 @@ enum EntryType
OBJ_TYPE_CLASS_MODULES
};
-#define BROWSEMODE_MODULES 0x01
-#define BROWSEMODE_SUBS 0x02
-#define BROWSEMODE_DIALOGS 0x04
+enum
+{
+ BROWSEMODE_MODULES = 0x01,
+ BROWSEMODE_SUBS = 0x02,
+ BROWSEMODE_DIALOGS = 0x04,
+};
class Entry
{