summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 11:45:23 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 13:56:07 +0200
commitd894fee80e40519cb579987b95cb3d19345dfa71 (patch)
treef0b91e37171f4123d3528b681613c99f34509d2e /extensions
parent5112f6a6c6e4cd76045f31e269a679b50dc83fb2 (diff)
remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructor
Convert code like: OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OStringBuffer aKeyName("NDX"); which compiles down to the same code Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/plugin/unx/unxmgr.cxx2
-rw-r--r--extensions/source/scanner/sanedlg.cxx7
2 files changed, 4 insertions, 5 deletions
diff --git a/extensions/source/plugin/unx/unxmgr.cxx b/extensions/source/plugin/unx/unxmgr.cxx
index 6da7fe50778b..2ee2b4964b7d 100644
--- a/extensions/source/plugin/unx/unxmgr.cxx
+++ b/extensions/source/plugin/unx/unxmgr.cxx
@@ -251,7 +251,7 @@ Sequence<PluginDescription> XPluginManager_Impl::impl_getPluginDescriptions() th
static const char* pNPXPluginPath = getenv( "NPX_PLUGIN_PATH" );
// netscape!, quick, beam me back to the 90's when Motif roamed the earth
- OStringBuffer aSearchBuffer(RTL_CONSTASCII_STRINGPARAM("/usr/lib/netscape/plugins"));
+ OStringBuffer aSearchBuffer("/usr/lib/netscape/plugins");
if( pHome )
aSearchBuffer.append(':').append(pHome).append("/.netscape/plugins");
if( pNPXPluginPath )
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index a11a656923f1..fbc031894f94 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -1275,8 +1275,7 @@ void SaneDlg::SaveState()
sal_Bool bValue;
if( mrSane.GetOptionValue( nOption, bValue ) )
{
- OStringBuffer aString(RTL_CONSTASCII_STRINGPARAM(
- "BOOL="));
+ OStringBuffer aString("BOOL=");
aString.append(static_cast<sal_Int32>(bValue));
aConfig.WriteKey(aOption, aString.makeStringAndClear());
}
@@ -1287,7 +1286,7 @@ void SaneDlg::SaveState()
OString aValue;
if( mrSane.GetOptionValue( nOption, aValue ) )
{
- OStringBuffer aString(RTL_CONSTASCII_STRINGPARAM("STRING="));
+ OStringBuffer aString("STRING=");
aString.append(aValue);
aConfig.WriteKey( aOption, aString.makeStringAndClear() );
}
@@ -1296,7 +1295,7 @@ void SaneDlg::SaveState()
case SANE_TYPE_FIXED:
case SANE_TYPE_INT:
{
- OStringBuffer aString(RTL_CONSTASCII_STRINGPARAM("NUMERIC="));
+ OStringBuffer aString("NUMERIC=");
double fValue;
char buf[256];
int n;