[Libreoffice-commits] core.git: connectivity/source dbaccess/source include/comphelper include/connectivity include/svx pyuno/inc sd/source svx/source

Stephan Bergmann sbergman at redhat.com
Mon Jun 6 15:08:20 UTC 2016


 connectivity/source/drivers/kab/KDriver.hxx            |    8 ++++----
 connectivity/source/drivers/macab/MacabDriver.hxx      |    8 ++++----
 dbaccess/source/core/dataaccess/databasedocument.hxx   |    6 +++---
 dbaccess/source/core/dataaccess/documentdefinition.hxx |    2 +-
 dbaccess/source/ui/inc/asyncmodaldialog.hxx            |    2 +-
 include/comphelper/officeresourcebundle.hxx            |    2 +-
 include/connectivity/dbexception.hxx                   |    2 +-
 include/svx/AccessibleShape.hxx                        |    2 +-
 include/svx/ChildrenManager.hxx                        |    2 +-
 include/svx/IAccessibleParent.hxx                      |    2 +-
 pyuno/inc/pyuno.hxx                                    |    2 +-
 sd/source/ui/inc/AccessiblePageShape.hxx               |    2 +-
 sd/source/ui/unoidl/unolayer.hxx                       |    2 +-
 svx/source/accessibility/ChildrenManagerImpl.hxx       |    2 +-
 svx/source/inc/GraphCtlAccessibleContext.hxx           |    2 +-
 15 files changed, 23 insertions(+), 23 deletions(-)

New commits:
commit d0bc637426060593046c8d3a4d01d0b05b052cc5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jun 6 17:07:25 2016 +0200

    Normalize on using @throws instead of @raise[s]
    
    ...as the former is used almost exclusively
    
    Change-Id: I38ff11cd0d5125534550df99dd427666011c3b7b

diff --git a/connectivity/source/drivers/kab/KDriver.hxx b/connectivity/source/drivers/kab/KDriver.hxx
index 24e411a..5174c90 100644
--- a/connectivity/source/drivers/kab/KDriver.hxx
+++ b/connectivity/source/drivers/kab/KDriver.hxx
@@ -85,9 +85,9 @@ namespace connectivity
 
             /** initializes the implementation module.
 
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if the module could be loaded, but required symbols are missing
-                @raises css::sdbc::SQLException
+                @throws css::sdbc::SQLException
                     if the KDE version we're running against is not supported, or no KDE was found at all
             */
             void init();
@@ -99,7 +99,7 @@ namespace connectivity
             /** creates a new connection
                 @precond
                     <member>init</member> has been called before
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if no connection object could be created (which is a severe error, normally impossible)
             */
             css::uno::Reference<css::sdbc::XConnection> createConnection(
@@ -112,7 +112,7 @@ namespace connectivity
 
                 @return <TRUE/> if the module could be loaded successfully.
 
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if the module could be loaded, but required symbols are missing
             */
             bool    impl_loadModule();
diff --git a/connectivity/source/drivers/macab/MacabDriver.hxx b/connectivity/source/drivers/macab/MacabDriver.hxx
index 8f19c87..20063ff 100644
--- a/connectivity/source/drivers/macab/MacabDriver.hxx
+++ b/connectivity/source/drivers/macab/MacabDriver.hxx
@@ -64,9 +64,9 @@ namespace connectivity
 
             /** initializes the implementation module.
 
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if the module could be loaded, but required symbols are missing
-                @raises css::sdbc::SQLException
+                @throws css::sdbc::SQLException
                     if no Mac OS was found at all
             */
             void init();
@@ -78,7 +78,7 @@ namespace connectivity
             /** creates a new connection
                 @precond
                     <member>init</member> has been called before
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if no connection object could be created (which is a severe error, normally impossible)
             */
             MacabConnection*  createConnection( MacabDriver* _pDriver ) const;
@@ -90,7 +90,7 @@ namespace connectivity
 
                 @return <TRUE/> if the module could be loaded successfully.
 
-                @raises css::uno::RuntimeException
+                @throws css::uno::RuntimeException
                     if the module could be loaded, but required symbols are missing
             */
             bool    impl_loadModule();
diff --git a/dbaccess/source/core/dataaccess/databasedocument.hxx b/dbaccess/source/core/dataaccess/databasedocument.hxx
index f9d4107..0b91ad8 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.hxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.hxx
@@ -488,7 +488,7 @@ private:
         determines if the ownership should be transferred to the component which
         possibly vetos the closing
 
-    @raises css::util::CloseVetoException
+    @throws css::util::CloseVetoException
         if the closing was vetoed by any instance
     */
     void    impl_closeControllerFrames_nolck_throw( bool _bDeliverOwnership );
@@ -506,9 +506,9 @@ private:
 
     /** retrieves the forms or reports contained, creates and initializes it, if necessary
 
-        @raises DisposedException
+        @throws DisposedException
             if the instance is already disposed
-        @raises IllegalArgumentException
+        @throws IllegalArgumentException
             if <arg>_eType</arg> is not ODatabaseModelImpl::E_FORM and not ODatabaseModelImpl::E_REPORT
     */
     css::uno::Reference< css::container::XNameAccess >
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.hxx b/dbaccess/source/core/dataaccess/documentdefinition.hxx
index 68d19a4..362bd1e 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.hxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.hxx
@@ -204,7 +204,7 @@ private:
     static void impl_initFormEditView( const css::uno::Reference< css::frame::XController >& _rxController );
 
     /** removes the given frame from the desktop's frame collection
-        @raises css::uno::RuntimeException
+        @throws css::uno::RuntimeException
     */
     static void impl_removeFrameFromDesktop_throw(
                     const css::uno::Reference< css::uno::XComponentContext >& _rContxt,
diff --git a/dbaccess/source/ui/inc/asyncmodaldialog.hxx b/dbaccess/source/ui/inc/asyncmodaldialog.hxx
index edbea22..3b6d251 100644
--- a/dbaccess/source/ui/inc/asyncmodaldialog.hxx
+++ b/dbaccess/source/ui/inc/asyncmodaldialog.hxx
@@ -33,7 +33,7 @@ namespace dbaui
     public:
         /** executes the given dialog asynchronously, but still modal
 
-            @raises IllegalArgumentException
+            @throws IllegalArgumentException
                 if the given dialog is <NULL/>
             @todo
                 allow for a callback for the result
diff --git a/include/comphelper/officeresourcebundle.hxx b/include/comphelper/officeresourcebundle.hxx
index 679d850..8f127d5 100644
--- a/include/comphelper/officeresourcebundle.hxx
+++ b/include/comphelper/officeresourcebundle.hxx
@@ -52,7 +52,7 @@ namespace comphelper
                 the component context to operate in
             @param  _bundleBaseName
                 the base name of the resource file which should be accessed (*without* the SUPD!)
-            @raises css::lang::NullPointerException
+            @throws css::lang::NullPointerException
                 if the given component context is <NULL/>
         */
         OfficeResourceBundle(
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx
index 3a1ba71..9de0e93 100644
--- a/include/connectivity/dbexception.hxx
+++ b/include/connectivity/dbexception.hxx
@@ -208,7 +208,7 @@ public:
 
     @param _eState
         describes the state whose description is to retrieve. Must not be SQL_ERROR_UNSPECIFIED.
-    @raises RuntimeException
+    @throws RuntimeException
         in case of an internal error
 */
 OOO_DLLPUBLIC_DBTOOLS OUString getStandardSQLState( StandardSQLState _eState );
diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx
index af842a0..8bafaec 100644
--- a/include/svx/AccessibleShape.hxx
+++ b/include/svx/AccessibleShape.hxx
@@ -216,7 +216,7 @@ public:
         @return
             Reference of the requested child which is the accessible object
             of a visible shape.
-        @raises IndexOutOfBoundsException
+        @throws IndexOutOfBoundsException
             Throws an exception if the index is not valid.
     */
     virtual css::uno::Reference<
diff --git a/include/svx/ChildrenManager.hxx b/include/svx/ChildrenManager.hxx
index 4e6aea5..bb1cab7 100644
--- a/include/svx/ChildrenManager.hxx
+++ b/include/svx/ChildrenManager.hxx
@@ -118,7 +118,7 @@ public:
             requested accessible child.  This reference is empty if it has
             not been possible to create the accessible object of the
             corresponding shape.
-        @raises
+        @throws
             Throws an IndexOutOfBoundsException if the index is not valid.
     */
     css::uno::Reference<
diff --git a/include/svx/IAccessibleParent.hxx b/include/svx/IAccessibleParent.hxx
index a5308f0..26678ef 100644
--- a/include/svx/IAccessibleParent.hxx
+++ b/include/svx/IAccessibleParent.hxx
@@ -71,7 +71,7 @@ public:
            occurs that does not result in an exception then <FALSE/> is
            returned.
 
-        @raises RuntimeException
+        @throws RuntimeException
            in case something went heavily wrong
     */
     virtual bool ReplaceChild (
diff --git a/pyuno/inc/pyuno.hxx b/pyuno/inc/pyuno.hxx
index eac2554..c80d9b1 100644
--- a/pyuno/inc/pyuno.hxx
+++ b/pyuno/inc/pyuno.hxx
@@ -276,7 +276,7 @@ public:
         precondition: The current thread MUST NOT hold the global interpreter lock.
         postcondition: The global interpreter lock is acquired
 
-        @raises css::uno::RuntimeException
+        @throws css::uno::RuntimeException
              in case no pythread state could be created
      */
     PyThreadAttach( PyInterpreterState *interp) throw ( css::uno::RuntimeException );
diff --git a/sd/source/ui/inc/AccessiblePageShape.hxx b/sd/source/ui/inc/AccessiblePageShape.hxx
index 90a977f..19c5e01 100644
--- a/sd/source/ui/inc/AccessiblePageShape.hxx
+++ b/sd/source/ui/inc/AccessiblePageShape.hxx
@@ -79,7 +79,7 @@ public:
         @return
             Reference of the requested child which is the accessible object
             of a visible shape.
-        @raises IndexOutOfBoundsException
+        @throws IndexOutOfBoundsException
             Throws always an exception because there are no children.
     */
     virtual css::uno::Reference<css::accessibility::XAccessible> SAL_CALL
diff --git a/sd/source/ui/unoidl/unolayer.hxx b/sd/source/ui/unoidl/unolayer.hxx
index 9a395e1..24fb20b 100644
--- a/sd/source/ui/unoidl/unolayer.hxx
+++ b/sd/source/ui/unoidl/unolayer.hxx
@@ -86,7 +86,7 @@ public:
     virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) throw (css::uno::RuntimeException, std::exception) override;
 
     /** Not implemented.  Always throws an exception.
-        @raises NoSupportException.
+        @throws NoSupportException.
     */
     virtual void SAL_CALL setParent( const css::uno::Reference< css::uno::XInterface >& Parent ) throw (css::lang::NoSupportException, css::uno::RuntimeException, std::exception) override;
 
diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx
index 1983e9f..e284ca6 100644
--- a/svx/source/accessibility/ChildrenManagerImpl.hxx
+++ b/svx/source/accessibility/ChildrenManagerImpl.hxx
@@ -131,7 +131,7 @@ public:
             requested accessible child.  This reference is empty if it has
             not been possible to create the accessible object of the
             corresponding shape.
-        @raises
+        @throws
             Throws an IndexOutOfBoundsException if the index is not valid.
     */
     css::uno::Reference<css::accessibility::XAccessible>
diff --git a/svx/source/inc/GraphCtlAccessibleContext.hxx b/svx/source/inc/GraphCtlAccessibleContext.hxx
index bb9027b..b7f7040 100644
--- a/svx/source/inc/GraphCtlAccessibleContext.hxx
+++ b/svx/source/inc/GraphCtlAccessibleContext.hxx
@@ -176,7 +176,7 @@ protected:
         @return
             The returned rectangle is a bounding box of the object given in
             absolute screen coordinates.
-        @raise DisposedException
+        @throws DisposedException
             When the object is already disposed then a
             <type>DisposedException</type> is thrown.
     */


More information about the Libreoffice-commits mailing list