diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 14:55:58 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 14:55:58 -0500 |
commit | d5d29accb75b2ce66aef9fa4089a255c05b1a459 (patch) | |
tree | e4873bd9bb04352b419c99a65cf9c9b8007ea814 /writerfilter/source/filter/WriterFilterDetection.cxx | |
parent | 397fd0189a810d6b04ad9831a12fa232aeeae474 (diff) |
targeted string re-work
Change-Id: I910a508722a309d7916377a7e2df2093070809ad
Diffstat (limited to 'writerfilter/source/filter/WriterFilterDetection.cxx')
-rw-r--r-- | writerfilter/source/filter/WriterFilterDetection.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/writerfilter/source/filter/WriterFilterDetection.cxx b/writerfilter/source/filter/WriterFilterDetection.cxx index 8475dab99551..73a66e925aa0 100644 --- a/writerfilter/source/filter/WriterFilterDetection.cxx +++ b/writerfilter/source/filter/WriterFilterDetection.cxx @@ -53,7 +53,7 @@ WriterFilterDetection::~WriterFilterDetection() OUString WriterFilterDetection_getImplementationName () throw (uno::RuntimeException) { - return OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.comp.Writer.WriterFilterDetector" ) ); + return OUString ( "com.sun.star.comp.Writer.WriterFilterDetector" ); } #define SERVICE_NAME1 "com.sun.star.document.ExtendedTypeDetection" @@ -93,10 +93,10 @@ OUString WriterFilterDetection::detect( uno::Sequence< beans::PropertyValue >& r { SotStorageRef xStg = new SotStorage( pStream, sal_False ); - bool bTable2 = xStg->IsContained( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("1Table"))); + bool bTable2 = xStg->IsContained( rtl::OUString("1Table")); SotStorageStreamRef xRef = - xStg->OpenSotStream(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("WordDocument")), + xStg->OpenSotStream(rtl::OUString("WordDocument"), STREAM_STD_READ | STREAM_NOCREATE ); @@ -156,7 +156,7 @@ uno::Sequence< OUString > WriterFilterDetection_getSupportedServiceNames( ) thr { uno::Sequence < OUString > aRet(1); OUString* pArray = aRet.getArray(); - pArray[0] = OUString ( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME1 ) ); + pArray[0] = OUString ( SERVICE_NAME1 ); return aRet; } #undef SERVICE_NAME1 |