summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-10-05 11:07:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-10-05 11:09:43 +0100
commit1bb145fc8095ca347f2bbea8e381ad9672ee39c4 (patch)
tree84bed38f7b18eeeea376156914132326249a1406 /reportdesign
parent63135c903cf3e9dfca28bb47358e272c5c30cad4 (diff)
fix build
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/filter/xml/xmlControlProperty.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/reportdesign/source/filter/xml/xmlControlProperty.cxx b/reportdesign/source/filter/xml/xmlControlProperty.cxx
index 8a7776ce7a28..848ce3b6785a 100644
--- a/reportdesign/source/filter/xml/xmlControlProperty.cxx
+++ b/reportdesign/source/filter/xml/xmlControlProperty.cxx
@@ -211,9 +211,9 @@ Any OXMLControlProperty::convertString(const ::com::sun::star::uno::Type& _rExpe
#endif
rImporter.GetMM100UnitConverter().convertBool(bValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
- ::rtl::OString("OXMLControlProperty::convertString: could not convert \"")
- += ::rtl::OString(_rReadCharacters.getStr(), _rReadCharacters.getLength(), RTL_TEXTENCODING_ASCII_US)
- += ::rtl::OString("\" into a boolean!"));
+ ::rtl::OStringBuffer("OXMLControlProperty::convertString: could not convert \"").
+ append(::rtl::OUStringToOString(_rReadCharacters, RTL_TEXTENCODING_ASCII_US)).
+ append("\" into a boolean!").getStr());
aReturn <<= bValue;
}
break;
@@ -226,9 +226,9 @@ Any OXMLControlProperty::convertString(const ::com::sun::star::uno::Type& _rExpe
#endif
rImporter.GetMM100UnitConverter().convertNumber(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
- ::rtl::OString("OXMLControlProperty::convertString: could not convert \"")
- += ::rtl::OString(_rReadCharacters.getStr(), _rReadCharacters.getLength(), RTL_TEXTENCODING_ASCII_US)
- += ::rtl::OString("\" into an integer!"));
+ ::rtl::OStringBuffer("OXMLControlProperty::convertString: could not convert \"").
+ append(rtl::OUStringToOString(_rReadCharacters, RTL_TEXTENCODING_ASCII_US)).
+ append("\" into an integer!").getStr());
if (TypeClass_SHORT == _rExpectedType.getTypeClass())
aReturn <<= (sal_Int16)nValue;
else
@@ -248,9 +248,9 @@ Any OXMLControlProperty::convertString(const ::com::sun::star::uno::Type& _rExpe
#endif
rImporter.GetMM100UnitConverter().convertDouble(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
- ::rtl::OString("OXMLControlProperty::convertString: could not convert \"")
- += ::rtl::OString(_rReadCharacters.getStr(), _rReadCharacters.getLength(), RTL_TEXTENCODING_ASCII_US)
- += ::rtl::OString("\" into a double!"));
+ ::rtl::OStringBuffer("OXMLControlProperty::convertString: could not convert \"").
+ append(::rtl::OUStringToOString(_rReadCharacters, RTL_TEXTENCODING_ASCII_US)).
+ append("\" into a double!").getStr());
aReturn <<= (double)nValue;
}
break;
@@ -279,9 +279,9 @@ Any OXMLControlProperty::convertString(const ::com::sun::star::uno::Type& _rExpe
#endif
rImporter.GetMM100UnitConverter().convertDouble(nValue, _rReadCharacters);
OSL_ENSURE(bSuccess,
- ::rtl::OString("OPropertyImport::convertString: could not convert \"")
- += ::rtl::OString(_rReadCharacters.getStr(), _rReadCharacters.getLength(), RTL_TEXTENCODING_ASCII_US)
- += ::rtl::OString("\" into a double!"));
+ ::rtl::OStringBuffer("OPropertyImport::convertString: could not convert \"").
+ append(rtl::OUStringToOString(_rReadCharacters, RTL_TEXTENCODING_ASCII_US)).
+ append("\" into a double!").getStr());
// then convert it into the target type
switch (nType)