diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-23 15:14:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-24 11:48:38 +0200 |
commit | dc1f1cde6329044611607d8bfc10203b6d83dcee (patch) | |
tree | 9dd20b1ac2818101667ee43c3e69c22bbab0b48e /sfx2 | |
parent | 0839f90394d96cf0fe414913527b3e3e5ba3c86a (diff) |
convert DocPasswordVerifierResult to scoped enum
Change-Id: Ib5a595819dec8511d284ed1022d8f7c624f8d8f9
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 61b7dcd3fadc..9675138dc673 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -147,7 +147,7 @@ private: ::comphelper::DocPasswordVerifierResult SfxDocPasswordVerifier::verifyEncryptionData( const uno::Sequence< beans::NamedValue >& rEncryptionData ) { - ::comphelper::DocPasswordVerifierResult eResult = ::comphelper::DocPasswordVerifierResult_WRONG_PASSWORD; + ::comphelper::DocPasswordVerifierResult eResult = ::comphelper::DocPasswordVerifierResult::WrongPassword; try { // check the encryption data @@ -160,17 +160,17 @@ private: embed::ElementModes::READ | embed::ElementModes::NOCREATE ); // no exception -> success - eResult = ::comphelper::DocPasswordVerifierResult_OK; + eResult = ::comphelper::DocPasswordVerifierResult::OK; } catch( const packages::WrongPasswordException& ) { - eResult = ::comphelper::DocPasswordVerifierResult_WRONG_PASSWORD; + eResult = ::comphelper::DocPasswordVerifierResult::WrongPassword; } catch( const uno::Exception& ) { // unknown error, report it as wrong password // TODO/LATER: we need an additional way to report unknown problems in this case - eResult = ::comphelper::DocPasswordVerifierResult_WRONG_PASSWORD; + eResult = ::comphelper::DocPasswordVerifierResult::WrongPassword; } return eResult; } |