summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-04 14:20:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-05 07:32:46 +0100
commit9a06b99d2f53bd8d0a9ab0936efed9924a2abb88 (patch)
tree544f3e51a3978bd234a1c9fcdbf12d9b84352da4 /include/comphelper
parenteaf89e477af94bd3977aca17d72dd442c7604e63 (diff)
loplugin:salcall fix non-virtual methods
first, since those are safer to change than virtual methods Change-Id: Ie3b624019d75ee2b793cee33b3c5f64e994e8bfe Reviewed-on: https://gerrit.libreoffice.org/45798 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/accessiblecomponenthelper.hxx10
-rw-r--r--include/comphelper/accessibleselectionhelper.hxx14
-rw-r--r--include/comphelper/accessibletexthelper.hxx12
-rw-r--r--include/comphelper/interfacecontainer2.hxx18
4 files changed, 27 insertions, 27 deletions
diff --git a/include/comphelper/accessiblecomponenthelper.hxx b/include/comphelper/accessiblecomponenthelper.hxx
index e7ac2fa157a6..963bea96bf17 100644
--- a/include/comphelper/accessiblecomponenthelper.hxx
+++ b/include/comphelper/accessiblecomponenthelper.hxx
@@ -57,15 +57,15 @@ namespace comphelper
@throws css::uno::RuntimeException
*/
- bool SAL_CALL containsPoint( const css::awt::Point& aPoint );
+ bool containsPoint( const css::awt::Point& aPoint );
/// @throws css::uno::RuntimeException
- css::awt::Point SAL_CALL getLocation( );
+ css::awt::Point getLocation( );
/// @throws css::uno::RuntimeException
- css::awt::Point SAL_CALL getLocationOnScreen( );
+ css::awt::Point getLocationOnScreen( );
/// @throws css::uno::RuntimeException
- css::awt::Size SAL_CALL getSize( );
+ css::awt::Size getSize( );
/// @throws css::uno::RuntimeException
- css::awt::Rectangle SAL_CALL getBounds( );
+ css::awt::Rectangle getBounds( );
};
diff --git a/include/comphelper/accessibleselectionhelper.hxx b/include/comphelper/accessibleselectionhelper.hxx
index d96347f51bb8..c4e060e2b664 100644
--- a/include/comphelper/accessibleselectionhelper.hxx
+++ b/include/comphelper/accessibleselectionhelper.hxx
@@ -71,22 +71,22 @@ namespace comphelper
@throws css::lang::IndexOutOfBoundsException
@throws css::uno::RuntimeException
*/
- void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex );
+ void selectAccessibleChild( sal_Int32 nChildIndex );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
- bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex );
+ bool isAccessibleChildSelected( sal_Int32 nChildIndex );
/// @throws css::uno::RuntimeException
- void SAL_CALL clearAccessibleSelection( );
+ void clearAccessibleSelection( );
/// @throws css::uno::RuntimeException
- void SAL_CALL selectAllAccessibleChildren( );
+ void selectAllAccessibleChildren( );
/// @throws css::uno::RuntimeException
- sal_Int32 SAL_CALL getSelectedAccessibleChildCount( );
+ sal_Int32 getSelectedAccessibleChildCount( );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
- css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex );
+ css::uno::Reference< css::accessibility::XAccessible > getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
- void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex );
+ void deselectAccessibleChild( sal_Int32 nSelectedChildIndex );
};
diff --git a/include/comphelper/accessibletexthelper.hxx b/include/comphelper/accessibletexthelper.hxx
index e522448132cd..60fe555efb87 100644
--- a/include/comphelper/accessibletexthelper.hxx
+++ b/include/comphelper/accessibletexthelper.hxx
@@ -69,23 +69,23 @@ namespace comphelper
@throws css::lang::IndexOutOfBoundsException
@throws css::uno::RuntimeException
*/
- OUString SAL_CALL getSelectedText();
+ OUString getSelectedText();
/// @throws css::uno::RuntimeException
- sal_Int32 SAL_CALL getSelectionStart();
+ sal_Int32 getSelectionStart();
/// @throws css::uno::RuntimeException
- sal_Int32 SAL_CALL getSelectionEnd();
+ sal_Int32 getSelectionEnd();
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- css::accessibility::TextSegment SAL_CALL getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType );
+ css::accessibility::TextSegment getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- css::accessibility::TextSegment SAL_CALL getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType );
+ css::accessibility::TextSegment getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- css::accessibility::TextSegment SAL_CALL getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType );
+ css::accessibility::TextSegment getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType );
public:
diff --git a/include/comphelper/interfacecontainer2.hxx b/include/comphelper/interfacecontainer2.hxx
index 4439dbfc5da6..d65cb78c0a25 100644
--- a/include/comphelper/interfacecontainer2.hxx
+++ b/include/comphelper/interfacecontainer2.hxx
@@ -88,20 +88,20 @@ public:
~OInterfaceIteratorHelper2();
/** Return true, if there are more elements in the iterator. */
- bool SAL_CALL hasMoreElements() const
+ bool hasMoreElements() const
{ return nRemain != 0; }
/** Return the next element of the iterator. Calling this method if
hasMoreElements() has returned false, is an error. Cast the
returned pointer to the
*/
- css::uno::XInterface * SAL_CALL next();
+ css::uno::XInterface * next();
/** Removes the current element (the last one returned by next())
from the underlying container. Calling this method before
next() has been called or calling it twice with no next()
inbetween is an error.
*/
- void SAL_CALL remove();
+ void remove();
private:
OInterfaceContainerHelper2 & rCont;
@@ -152,12 +152,12 @@ public:
Return the number of Elements in the container. Only useful if you have acquired
the mutex.
*/
- sal_Int32 SAL_CALL getLength() const;
+ sal_Int32 getLength() const;
/**
Return all interfaces added to this container.
**/
- std::vector< css::uno::Reference< css::uno::XInterface > > SAL_CALL getElements() const;
+ std::vector< css::uno::Reference< css::uno::XInterface > > getElements() const;
/** Inserts an element into the container. The position is not specified, thus it is not
specified in which order events are fired.
@@ -175,7 +175,7 @@ public:
@return
the new count of elements in the container
*/
- sal_Int32 SAL_CALL addInterface( const css::uno::Reference< css::uno::XInterface > & rxIFace );
+ sal_Int32 addInterface( const css::uno::Reference< css::uno::XInterface > & rxIFace );
/** Removes an element from the container. It uses interface equality to remove the interface.
@param rxIFace
@@ -183,16 +183,16 @@ public:
@return
the new count of elements in the container
*/
- sal_Int32 SAL_CALL removeInterface( const css::uno::Reference< css::uno::XInterface > & rxIFace );
+ sal_Int32 removeInterface( const css::uno::Reference< css::uno::XInterface > & rxIFace );
/**
Call disposing on all object in the container that
support XEventListener. Than clear the container.
*/
- void SAL_CALL disposeAndClear( const css::lang::EventObject & rEvt );
+ void disposeAndClear( const css::lang::EventObject & rEvt );
/**
Clears the container without calling disposing().
*/
- void SAL_CALL clear();
+ void clear();
/** Executes a functor for each contained listener of specified type, e.g.
<code>forEach<awt::XPaintListener>(...</code>.