summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/bastype3.cxx
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-11-30 02:11:15 -0500
committerAugust Sodora <augsod@gmail.com>2011-11-30 02:11:59 -0500
commit1eb974c1429967ce76db4b16192a9a95b3e8cc6f (patch)
tree11512a5c5613d5609dcfd9530992830ad0095336 /basctl/source/basicide/bastype3.cxx
parente57e5b0c7f1a5ec6cd008226f126438d65cbd8d0 (diff)
Convert group of consts to enum
Diffstat (limited to 'basctl/source/basicide/bastype3.cxx')
-rw-r--r--basctl/source/basicide/bastype3.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basctl/source/basicide/bastype3.cxx b/basctl/source/basicide/bastype3.cxx
index 7cddd8aa750d..2324c4d4d103 100644
--- a/basctl/source/basicide/bastype3.cxx
+++ b/basctl/source/basicide/bastype3.cxx
@@ -375,35 +375,35 @@ BasicEntryDescriptor BasicTreeListBox::GetEntryDescriptor( SvLBoxEntry* pEntry )
return BasicEntryDescriptor( aDocument, eLocation, aLibName, aLibSubName, aName, aMethodName, eType );
}
-sal_uInt16 BasicTreeListBox::ConvertType( BasicEntryType eType )
+BasicIDEType BasicTreeListBox::ConvertType( BasicEntryType eType )
{
- sal_uInt16 nType = OBJ_TYPE_UNKNOWN;
+ BasicIDEType nType = static_cast<BasicIDEType>(OBJ_TYPE_UNKNOWN);
switch ( eType )
{
case OBJ_TYPE_DOCUMENT:
{
- nType = BASICIDE_TYPE_SHELL;
+ nType = BasicIDEType::Shell;
}
break;
case OBJ_TYPE_LIBRARY:
{
- nType = BASICIDE_TYPE_LIBRARY;
+ nType = BasicIDEType::Library;
}
break;
case OBJ_TYPE_MODULE:
{
- nType = BASICIDE_TYPE_MODULE;
+ nType = BasicIDEType::Module;
}
break;
case OBJ_TYPE_DIALOG:
{
- nType = BASICIDE_TYPE_DIALOG;
+ nType = BasicIDEType::Dialog;
}
break;
case OBJ_TYPE_METHOD:
{
- nType = BASICIDE_TYPE_METHOD;
+ nType = BasicIDEType::Method;
}
break;
default: ;