summaryrefslogtreecommitdiff
path: root/basic/source/comp/parser.cxx
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-04-16 17:28:52 +0200
committerDaniel Rentz <dr@openoffice.org>2010-04-16 17:28:52 +0200
commit45cc8f5bd1f3f7bb3cb4e63088f280dc8e8b93fc (patch)
treec08499c115b95d8a3c5b676668e0df2679f50fe2 /basic/source/comp/parser.cxx
parent130bbc98813c32460dc354dfa712de620cedecff (diff)
npower13_objectmodules: uppercase UNO constants
Diffstat (limited to 'basic/source/comp/parser.cxx')
-rw-r--r--basic/source/comp/parser.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index 9fbd1035fa5f..8770dc8539f0 100644
--- a/basic/source/comp/parser.cxx
+++ b/basic/source/comp/parser.cxx
@@ -29,6 +29,7 @@
#include "precompiled_basic.hxx"
#include <basic/sbx.hxx>
#include "sbcomp.hxx"
+#include <com/sun/star/script/ModuleType.hpp>
struct SbiParseStack { // "Stack" fuer Statement-Blocks
SbiParseStack* pNext; // Chain
@@ -140,7 +141,7 @@ SbiParser::SbiParser( StarBASIC* pb, SbModule* pm )
bNewGblDefs =
bSingleLineIf =
bExplicit = FALSE;
- bClassModule = ( pm->GetModuleType() == com::sun::star::script::ModuleType::Class );
+ bClassModule = ( pm->GetModuleType() == com::sun::star::script::ModuleType::CLASS );
OSL_TRACE("Parser - %s, bClassModule %d", rtl::OUStringToOString( pm->GetName(), RTL_TEXTENCODING_UTF8 ).getStr(), bClassModule );
pPool = &aPublics;
for( short i = 0; i < 26; i++ )
@@ -756,7 +757,7 @@ void SbiParser::Option()
case CLASSMODULE:
bClassModule = TRUE;
- aGen.GetModule().SetModuleType( com::sun::star::script::ModuleType::Class );
+ aGen.GetModule().SetModuleType( com::sun::star::script::ModuleType::CLASS );
break;
case VBASUPPORT:
if( Next() == NUMBER )