summaryrefslogtreecommitdiff
path: root/comphelper/source/streaming
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-24 21:02:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-24 21:05:46 +0100
commit34dff4e6b49765a0b9c1836de2daecf429702760 (patch)
tree99cd89150b6d1d056f2c440f3439dc90e1f4b44e /comphelper/source/streaming
parentcc72fb7c4115bee9a10c565c72d5b96b6fe63b0e (diff)
micro opts
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r--comphelper/source/streaming/otransactedfilestream.cxx4
-rw-r--r--comphelper/source/streaming/seekableinput.cxx2
-rw-r--r--comphelper/source/streaming/seqinputstreamserv.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/comphelper/source/streaming/otransactedfilestream.cxx b/comphelper/source/streaming/otransactedfilestream.cxx
index 958f3e9707fd..bac4403fd6ad 100644
--- a/comphelper/source/streaming/otransactedfilestream.cxx
+++ b/comphelper/source/streaming/otransactedfilestream.cxx
@@ -304,9 +304,9 @@ void OTruncatedTransactedFileStream::Commit_Impl()
::rtl::OUString aTempURL;
try {
uno::Reference< beans::XPropertySet > xTempFile( m_pStreamData->m_xTempStream, uno::UNO_QUERY_THROW );
- uno::Any aUrl = xTempFile->getPropertyValue( ::rtl::OUString::createFromAscii( "Uri" ) );
+ uno::Any aUrl = xTempFile->getPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Uri")) );
aUrl >>= aTempURL;
- xTempFile->setPropertyValue( ::rtl::OUString::createFromAscii( "RemoveFile" ),
+ xTempFile->setPropertyValue( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("RemoveFile")),
uno::makeAny( sal_False ) );
m_pStreamData->m_xTempSeekable->seek( nPos );
diff --git a/comphelper/source/streaming/seekableinput.cxx b/comphelper/source/streaming/seekableinput.cxx
index 70d81b450c04..f20153ee0aaf 100644
--- a/comphelper/source/streaming/seekableinput.cxx
+++ b/comphelper/source/streaming/seekableinput.cxx
@@ -102,7 +102,7 @@ void OSeekableInputWrapper::PrepareCopy_Impl()
throw uno::RuntimeException();
uno::Reference< io::XOutputStream > xTempOut(
- m_xFactory->createInstance( ::rtl::OUString::createFromAscii( "com.sun.star.io.TempFile" ) ),
+ m_xFactory->createInstance( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.io.TempFile")) ),
uno::UNO_QUERY );
if ( xTempOut.is() )
diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx
index 1a361298661f..4e1cc7ade660 100644
--- a/comphelper/source/streaming/seqinputstreamserv.cxx
+++ b/comphelper/source/streaming/seqinputstreamserv.cxx
@@ -223,7 +223,7 @@ void SAL_CALL SequenceInputStreamService::initialize( const uno::Sequence< ::com
throw frame::DoubleInitializationException();
if ( aArguments.getLength() != 1 )
- throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Wrong number of arguments!\n" ),
+ throw lang::IllegalArgumentException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Wrong number of arguments!\n")),
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
1 );
@@ -239,7 +239,7 @@ void SAL_CALL SequenceInputStreamService::initialize( const uno::Sequence< ::com
m_bInitialized = sal_True;
}
else
- throw lang::IllegalArgumentException( ::rtl::OUString::createFromAscii( "Unexpected type of argument!\n" ),
+ throw lang::IllegalArgumentException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Unexpected type of argument!\n")),
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ),
1 );
}