diff options
Diffstat (limited to 'sdext/source/pdfimport/misc/pwdinteract.cxx')
-rw-r--r-- | sdext/source/pdfimport/misc/pwdinteract.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sdext/source/pdfimport/misc/pwdinteract.cxx b/sdext/source/pdfimport/misc/pwdinteract.cxx index 6c8a8959319c..df10b09a108a 100644 --- a/sdext/source/pdfimport/misc/pwdinteract.cxx +++ b/sdext/source/pdfimport/misc/pwdinteract.cxx @@ -57,15 +57,15 @@ public: PDFPasswordRequest& operator=(const PDFPasswordRequest&) = delete; // XInteractionRequest - virtual uno::Any SAL_CALL getRequest( ) throw (uno::RuntimeException, std::exception) override; - virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations( ) throw (uno::RuntimeException, std::exception) override; + virtual uno::Any SAL_CALL getRequest( ) override; + virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > SAL_CALL getContinuations( ) override; // XInteractionPassword - virtual void SAL_CALL setPassword( const OUString& rPwd ) throw (uno::RuntimeException, std::exception) override; - virtual OUString SAL_CALL getPassword() throw (uno::RuntimeException, std::exception) override; + virtual void SAL_CALL setPassword( const OUString& rPwd ) override; + virtual OUString SAL_CALL getPassword() override; // XInteractionContinuation - virtual void SAL_CALL select() throw (uno::RuntimeException, std::exception) override; + virtual void SAL_CALL select() override; bool isSelected() const { osl::MutexGuard const guard( m_aMutex ); return m_bSelected; } @@ -86,33 +86,33 @@ PDFPasswordRequest::PDFPasswordRequest( bool bFirstTry, const OUString& rName ) m_bSelected(false) {} -uno::Any PDFPasswordRequest::getRequest() throw (uno::RuntimeException, std::exception) +uno::Any PDFPasswordRequest::getRequest() { return m_aRequest; } -uno::Sequence< uno::Reference< task::XInteractionContinuation > > PDFPasswordRequest::getContinuations() throw (uno::RuntimeException, std::exception) +uno::Sequence< uno::Reference< task::XInteractionContinuation > > PDFPasswordRequest::getContinuations() { uno::Sequence< uno::Reference< task::XInteractionContinuation > > aRet( 1 ); aRet[0] = this; return aRet; } -void PDFPasswordRequest::setPassword( const OUString& rPwd ) throw (uno::RuntimeException, std::exception) +void PDFPasswordRequest::setPassword( const OUString& rPwd ) { osl::MutexGuard const guard( m_aMutex ); m_aPassword = rPwd; } -OUString PDFPasswordRequest::getPassword() throw (uno::RuntimeException, std::exception) +OUString PDFPasswordRequest::getPassword() { osl::MutexGuard const guard( m_aMutex ); return m_aPassword; } -void PDFPasswordRequest::select() throw (uno::RuntimeException, std::exception) +void PDFPasswordRequest::select() { osl::MutexGuard const guard( m_aMutex ); @@ -130,7 +130,7 @@ public: private: virtual ~UnsupportedEncryptionFormatRequest() override {} - virtual uno::Any SAL_CALL getRequest() throw (uno::RuntimeException, std::exception) override { + virtual uno::Any SAL_CALL getRequest() override { return uno::makeAny( task::ErrorCodeRequest( OUString(), uno::Reference< uno::XInterface >(), @@ -140,7 +140,7 @@ private: } virtual uno::Sequence< uno::Reference< task::XInteractionContinuation > > - SAL_CALL getContinuations() throw (uno::RuntimeException, std::exception) override { + SAL_CALL getContinuations() override { return uno::Sequence< uno::Reference< task::XInteractionContinuation > >(); } |