summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxobj.cxx
diff options
context:
space:
mode:
authorbaltasarq <baltasarq@gmail.com>2016-02-24 11:10:39 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-02-24 10:14:49 +0000
commit459e3fe7c97abe922e42e464ace2914546602f44 (patch)
tree4dbff9d9f9b195cdff02dc40cfc8650d7926398d /basic/source/sbx/sbxobj.cxx
parent0103c52d7bf61cd6632e6a08e785ab10ef488f22 (diff)
Removing #defines for String_XXX in sbxres.hxx
This is a [partial] patch for BUG #84938: https://bugs.documentfoundation.org/show_bug.cgi?id=84938 The objective is to substitute all apparitions of #defined constants for enum class. The victim here is the series of constants STRING_xxx that were located in sbres.hxx and were changed for a StringId enum class. Obviously some other files where the type is used must be changed too. Change-Id: I31fa684eb5eb3508d2025c9a319d5b245cc177af Reviewed-on: https://gerrit.libreoffice.org/22655 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/sbx/sbxobj.cxx')
-rw-r--r--basic/source/sbx/sbxobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxobj.cxx b/basic/source/sbx/sbxobj.cxx
index d342ef0f3b20..33dae801cd48 100644
--- a/basic/source/sbx/sbxobj.cxx
+++ b/basic/source/sbx/sbxobj.cxx
@@ -40,8 +40,8 @@ SbxObject::SbxObject( const OUString& rClass )
aData.pObj = this;
if( !nNameHash )
{
- pNameProp = OUString::createFromAscii(GetSbxRes( STRING_NAMEPROP ));
- pParentProp = OUString::createFromAscii(GetSbxRes( STRING_PARENTPROP ));
+ pNameProp = OUString::createFromAscii(GetSbxRes( StringId::NameProp ));
+ pParentProp = OUString::createFromAscii(GetSbxRes( StringId::ParentProp ));
nNameHash = MakeHashCode( pNameProp );
nParentHash = MakeHashCode( pParentProp );
}