summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-03 16:36:31 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-09-03 16:36:52 +0200
commitc578ed53615d219768bc1f07506b1e8756375db6 (patch)
treedcd0eac557d824230b1bbaddd60bc207b92c892b /writerperfect/source/writer
parent3a36408b73d8a9be43cd9f4570537ff1d80c0114 (diff)
No explicit rtl::OUString ctors needed, sberg dixit
Change-Id: I0b675213064a10cebfdea1fb99573dcf3e34284b
Diffstat (limited to 'writerperfect/source/writer')
-rw-r--r--writerperfect/source/writer/MSWorksImportFilter.cxx4
-rw-r--r--writerperfect/source/writer/WordPerfectImportFilter.cxx10
2 files changed, 7 insertions, 7 deletions
diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx
index 6ca2e27ff6d4..c5155ea345f9 100644
--- a/writerperfect/source/writer/MSWorksImportFilter.cxx
+++ b/writerperfect/source/writer/MSWorksImportFilter.cxx
@@ -171,14 +171,14 @@ throw( com::sun::star::uno::RuntimeException )
confidence = WPSDocument::isFileFormatSupported(&input);
if ((confidence == WPS_CONFIDENCE_EXCELLENT) || (confidence == WPS_CONFIDENCE_GOOD))
- sTypeName = OUString( "writer_MS_Works_Document" );
+ sTypeName = "writer_MS_Works_Document";
if (!sTypeName.isEmpty())
{
if ( location == Descriptor.getLength() )
{
Descriptor.realloc(nLength+1);
- Descriptor[location].Name = ::rtl::OUString("TypeName");
+ Descriptor[location].Name = "TypeName";
}
Descriptor[location].Value <<=sTypeName;
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx
index faf095bada1a..a7d1534d6df2 100644
--- a/writerperfect/source/writer/WordPerfectImportFilter.cxx
+++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx
@@ -226,14 +226,14 @@ throw( RuntimeException )
confidence = WPDocument::isFileFormatSupported(&input);
if (confidence == WPD_CONFIDENCE_EXCELLENT || confidence == WPD_CONFIDENCE_SUPPORTED_ENCRYPTION)
- sTypeName = OUString( "writer_WordPerfect_Document" );
+ sTypeName = "writer_WordPerfect_Document";
if (!sTypeName.isEmpty())
{
if ( location == Descriptor.getLength() )
{
Descriptor.realloc(nLength+1);
- Descriptor[location].Name = ::rtl::OUString("TypeName");
+ Descriptor[location].Name = "TypeName";
}
Descriptor[location].Value <<=sTypeName;
@@ -343,7 +343,7 @@ throw (RuntimeException)
aPasswdDlg.SetMinLen(0);
if(!aPasswdDlg.Execute())
return com::sun::star::ui::dialogs::ExecutableDialogResults::CANCEL;
- msPassword = ::rtl::OUString(aPasswdDlg.GetPassword().GetBuffer());
+ msPassword = aPasswdDlg.GetPassword().GetBuffer();
aUtf8Passwd = OUStringToOString(msPassword, RTL_TEXTENCODING_UTF8);
if (WPD_PASSWORD_MATCH_OK == WPDocument::verifyPassword(&input, aUtf8Passwd.getStr()))
break;
@@ -361,7 +361,7 @@ Sequence<PropertyValue> SAL_CALL WordPerfectImportFilterDialog::getPropertyValue
Sequence<PropertyValue> aRet(1);
PropertyValue *pArray = aRet.getArray();
- pArray[0].Name = rtl::OUString( "Password" );
+ pArray[0].Name = "Password";
pArray[0].Value <<= msPassword;
return aRet;
@@ -378,7 +378,7 @@ throw(com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::Pr
const PropertyValue &rProp = pPropArray[i];
::rtl::OUString aPropName = rProp.Name;
- if ( aPropName == ::rtl::OUString("Password") )
+ if ( aPropName == "Password" )
rProp.Value >>= msPassword;
else if ( aPropName == "InputStream" )
rProp.Value >>= mxInputStream;