diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-04 13:59:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-04 14:47:18 +0000 |
commit | c8597274c31ed2ba59b5f2c6f555099aa9928f39 (patch) | |
tree | 160c58cff07e45a01a5c58327b673207efe3db81 /include/formula | |
parent | Typo: translitaration->transliteration (diff) | |
download | core-c8597274c31ed2ba59b5f2c6f555099aa9928f39.tar.gz core-c8597274c31ed2ba59b5f2c6f555099aa9928f39.zip |
merge OpCodeEnum and OpCode
and replace ifdef hackery with an explicit underlying type
Change-Id: Ibd340cf28d022af545a82e98e623d4c137ff7e53
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/opcode.hxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index 199d598c5638..0626ed5181db 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -23,7 +23,7 @@ #include <formula/compiler.hrc> #include <sal/types.h> -enum OpCodeEnum +enum OpCode : sal_uInt16 { // Special commands ocPush = SC_OPCODE_PUSH, @@ -475,14 +475,6 @@ enum OpCodeEnum ocNone = SC_OPCODE_NONE }; -#ifndef DBG_UTIL -// save memory since compilers tend to int an enum -typedef sal_uInt16 OpCode; -#else -// have enum names in debugger -typedef OpCodeEnum OpCode; -#endif - #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |