diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-03-03 14:56:17 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-03-03 14:57:01 +0100 |
commit | 39c2a52d198f513c2f5afbd38dd9b14bff388d6e (patch) | |
tree | 8449dcbf35c67fdcc24036fb73c07038708a0985 /writerfilter | |
parent | ValueSet: simplified autoscroll logic (diff) | |
download | core-39c2a52d198f513c2f5afbd38dd9b14bff388d6e.tar.gz core-39c2a52d198f513c2f5afbd38dd9b14bff388d6e.zip |
Avoid temporary rtl::OUString
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/filter/WriterFilterDetection.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/filter/WriterFilterDetection.cxx b/writerfilter/source/filter/WriterFilterDetection.cxx index ff2e22e00bd1..f9d9ca482001 100644 --- a/writerfilter/source/filter/WriterFilterDetection.cxx +++ b/writerfilter/source/filter/WriterFilterDetection.cxx @@ -71,7 +71,7 @@ OUString WriterFilterDetection::detect( uno::Sequence< beans::PropertyValue >& r uno::Reference < io::XInputStream > xInputStream; for( sal_Int32 nProperty = 0; nProperty < nPropertyCount; ++nProperty ) { - if( pValues[nProperty].Name == OUString(RTL_CONSTASCII_USTRINGPARAM("TypeName")) ) + if( pValues[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("TypeName")) ) rDescriptor[nProperty].Value >>= sTypeName; else if( pValues[nProperty].Name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM ( "URL" )) ) pValues[nProperty].Value >>= sURL; |