diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-28 00:30:59 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-28 01:32:06 -0600 |
commit | fd773e669a0958f5f989e17a87ef815ecfd02476 (patch) | |
tree | aa324ba97f20e4dc797516a8952f04cee9a94096 /writerperfect | |
parent | 1b6e55eb350e22147a22ad22c1c4f08fc6ed19f5 (diff) |
clean-up a lone lost 'String' in writerperfect
Change-Id: I848ac4d934ffde0ae9c4b8b674fcb46c7bd17769
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/writer/WordPerfectImportFilter.cxx | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index 45372e399095..cf1c61fd6ef6 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -35,8 +35,6 @@ #include "stream/WPXSvStream.h" #include "WordPerfectImportFilter.hxx" -using ::rtl::OString; -using ::rtl::OUString; using ::ucbhelper::Content; using com::sun::star::uno::Sequence; using com::sun::star::uno::Reference; @@ -126,9 +124,8 @@ throw (RuntimeException) aPasswdDlg.SetMinLen(0); if(!aPasswdDlg.Execute()) return sal_False; - String aPasswd = aPasswdDlg.GetPassword(); - OUString aUniPasswd(aPasswd.GetBuffer() /*, aPasswd.Len(), RTL_TEXTENCODING_UCS2 */); - aUtf8Passwd = OUStringToOString(aUniPasswd, RTL_TEXTENCODING_UTF8); + OUString aPasswd = aPasswdDlg.GetPassword(); + aUtf8Passwd = OUStringToOString(aPasswd, RTL_TEXTENCODING_UTF8); if (WPD_PASSWORD_MATCH_OK == WPDocument::verifyPassword(&input, aUtf8Passwd.getStr())) break; else @@ -211,17 +208,17 @@ throw( RuntimeException ) } catch ( ... ) { - return ::rtl::OUString(); + return OUString(); } if (!xInputStream.is()) - return ::rtl::OUString(); + return OUString(); } WPXSvInputStream input( xInputStream ); if (input.atEOS()) - return ::rtl::OUString(); + return OUString(); confidence = WPDocument::isFileFormatSupported(&input); @@ -320,7 +317,7 @@ WordPerfectImportFilterDialog::~WordPerfectImportFilterDialog() { } -void SAL_CALL WordPerfectImportFilterDialog::setTitle( const ::rtl::OUString & ) +void SAL_CALL WordPerfectImportFilterDialog::setTitle( const OUString & ) throw (RuntimeException) { } @@ -376,7 +373,7 @@ throw(com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::Pr for (long i = 0; i < nPropCount; i++) { const PropertyValue &rProp = pPropArray[i]; - ::rtl::OUString aPropName = rProp.Name; + OUString aPropName = rProp.Name; if ( aPropName == "Password" ) rProp.Value >>= msPassword; |