summaryrefslogtreecommitdiff
path: root/io/source/stm
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-25 12:47:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-25 16:59:32 +0100
commitc954581637cdd6b76a14a74d17068c1d3d481021 (patch)
tree364a382492b029922cdb0638e957cd120c3b62ff /io/source/stm
parent26c20675d0c36cb1c606970df2d638e05325e02c (diff)
micro optimizations
Diffstat (limited to 'io/source/stm')
-rw-r--r--io/source/stm/omark.cxx2
-rw-r--r--io/source/stm/opump.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx
index b99d8ed948d2..792920c2667a 100644
--- a/io/source/stm/omark.cxx
+++ b/io/source/stm/omark.cxx
@@ -730,7 +730,7 @@ void OMarkableInputStream::skipBytes(sal_Int32 nBytesToSkip)
{
if ( nBytesToSkip < 0 )
throw BufferSizeExceededException(
- ::rtl::OUString::createFromAscii( "precondition not met: XInputStream::skipBytes: non-negative integer required!" ),
+ ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("precondition not met: XInputStream::skipBytes: non-negative integer required!")),
*this
);
diff --git a/io/source/stm/opump.cxx b/io/source/stm/opump.cxx
index 5b3181fa5844..0d20908daae1 100644
--- a/io/source/stm/opump.cxx
+++ b/io/source/stm/opump.cxx
@@ -280,7 +280,7 @@ void Pump::run()
if( ! rInput.is() )
{
NotConnectedException exception(
- OUString::createFromAscii( "no input stream set" ) , Reference<XInterface>((OWeakObject*)this) );
+ OUString(RTL_CONSTASCII_USTRINGPARAM("no input stream set")) , Reference<XInterface>((OWeakObject*)this) );
throw exception;
}
Sequence< sal_Int8 > aData;
@@ -289,7 +289,7 @@ void Pump::run()
if( ! rOutput.is() )
{
NotConnectedException exception(
- OUString::createFromAscii( "no output stream set" ) , Reference<XInterface>( (OWeakObject*)this) );
+ OUString(RTL_CONSTASCII_USTRINGPARAM("no output stream set")) , Reference<XInterface>( (OWeakObject*)this) );
throw exception;
}
rOutput->writeBytes( aData );