summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr/stringrepresentation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/source/propctrlr/stringrepresentation.cxx')
-rw-r--r--extensions/source/propctrlr/stringrepresentation.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/extensions/source/propctrlr/stringrepresentation.cxx b/extensions/source/propctrlr/stringrepresentation.cxx
index 946c8b6422f5..045622d612e6 100644
--- a/extensions/source/propctrlr/stringrepresentation.cxx
+++ b/extensions/source/propctrlr/stringrepresentation.cxx
@@ -36,8 +36,8 @@
#include <com/sun/star/util/Time.hpp>
#include <comphelper/sequence.hxx>
#include <connectivity/dbconversion.hxx>
-#include <tools/resary.hxx>
-#include "formresid.hrc"
+#include "strings.hrc"
+#include "yesno.hrc"
#include "pcrservices.hxx"
#include <comphelper/types.hxx>
#include "modulepcr.hxx"
@@ -376,11 +376,10 @@ bool StringRepresentation::convertGenericValueToString( const uno::Any& _rValue,
case uno::TypeClass_BOOLEAN:
{
- ResStringArray aListEntries(PcrRes(RID_RSC_ENUM_YESNO));
bool bValue = false;
_rValue >>= bValue;
- _rStringRep = bValue ? aListEntries.GetString(1)
- : aListEntries.GetString(0);
+ _rStringRep = bValue ? PcrRes(RID_RSC_ENUM_YESNO[1])
+ : PcrRes(RID_RSC_ENUM_YESNO[0]);
}
break;
@@ -515,8 +514,7 @@ bool StringRepresentation::convertStringToGenericValue( const OUString& _rString
case uno::TypeClass_BOOLEAN:
{
- ResStringArray aListEntries(PcrRes(RID_RSC_ENUM_YESNO));
- _rValue <<= aListEntries.GetString(0) != _rStringRep;
+ _rValue <<= PcrRes(RID_RSC_ENUM_YESNO[0]) != _rStringRep;
}
break;