summaryrefslogtreecommitdiffstats
path: root/include/rtl/ref.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-03 20:57:02 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-03 20:55:50 +0000
commit6cb9e6dad798ec59f055aebe84a9c4a21e4be40d (patch)
tree21a7d6c0b165251ba8e0f36e73c851d41ac9dd04 /include/rtl/ref.hxx
parenttdf#42982 improve error reporting in sc unoobj (diff)
downloadcore-6cb9e6dad798ec59f055aebe84a9c4a21e4be40d.tar.gz
core-6cb9e6dad798ec59f055aebe84a9c4a21e4be40d.zip
Remove redundant 'inline' keyword
...from function definitions occurring within class definitions. Done with a rewriting Clang plugin (to be pushed later). Change-Id: I9c6f2818a57ccdb361548895a7743107cbacdff8 Reviewed-on: https://gerrit.libreoffice.org/34874 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl/ref.hxx')
-rw-r--r--include/rtl/ref.hxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/include/rtl/ref.hxx b/include/rtl/ref.hxx
index 5eeb857f8a42..e8f624a93d6f 100644
--- a/include/rtl/ref.hxx
+++ b/include/rtl/ref.hxx
@@ -42,21 +42,21 @@ class Reference
public:
/** Constructor...
*/
- inline Reference()
+ Reference()
: m_pBody (NULL)
{}
/** Constructor...
*/
- inline Reference (reference_type * pBody, __sal_NoAcquire)
+ Reference (reference_type * pBody, __sal_NoAcquire)
: m_pBody (pBody)
{
}
/** Constructor...
*/
- inline Reference (reference_type * pBody)
+ Reference (reference_type * pBody)
: m_pBody (pBody)
{
if (m_pBody)
@@ -65,7 +65,7 @@ public:
/** Copy constructor...
*/
- inline Reference (const Reference<reference_type> & handle)
+ Reference (const Reference<reference_type> & handle)
: m_pBody (handle.m_pBody)
{
if (m_pBody)
@@ -75,7 +75,7 @@ public:
#ifdef LIBO_INTERNAL_ONLY
/** Move constructor...
*/
- inline Reference (Reference<reference_type> && handle)
+ Reference (Reference<reference_type> && handle)
: m_pBody (handle.m_pBody)
{
handle.m_pBody = nullptr;
@@ -84,7 +84,7 @@ public:
/** Destructor...
*/
- inline ~Reference()
+ ~Reference()
{
if (m_pBody)
m_pBody->release();
@@ -93,7 +93,7 @@ public:
/** Set...
Similar to assignment.
*/
- inline Reference<reference_type> &
+ Reference<reference_type> &
SAL_CALL set (reference_type * pBody)
{
if (pBody)
@@ -109,7 +109,7 @@ public:
Unbinds this instance from its body (if bound) and
bind it to the body represented by the handle.
*/
- inline Reference<reference_type> &
+ Reference<reference_type> &
SAL_CALL operator= (const Reference<reference_type> & handle)
{
return set( handle.m_pBody );
@@ -121,7 +121,7 @@ public:
* bind it to the body represented by the handle, and
* set the body represented by the handle to nullptr.
*/
- inline Reference<reference_type> &
+ Reference<reference_type> &
operator= (Reference<reference_type> && handle)
{
// self-movement guts ourself
@@ -135,7 +135,7 @@ public:
/** Assignment...
*/
- inline Reference<reference_type> &
+ Reference<reference_type> &
SAL_CALL operator= (reference_type * pBody)
{
return set( pBody );
@@ -148,7 +148,7 @@ public:
since in the second case two large objects exist in memory
(the old body and the new body).
*/
- inline Reference<reference_type> & SAL_CALL clear()
+ Reference<reference_type> & SAL_CALL clear()
{
if (m_pBody)
{
@@ -164,7 +164,7 @@ public:
I.e. handle->someBodyOp() and handle.get()->someBodyOp()
are the same.
*/
- inline reference_type * SAL_CALL get() const
+ reference_type * SAL_CALL get() const
{
return m_pBody;
}
@@ -172,7 +172,7 @@ public:
/** Probably most common used: handle->someBodyOp().
*/
- inline reference_type * SAL_CALL operator->() const
+ reference_type * SAL_CALL operator->() const
{
assert(m_pBody != NULL);
return m_pBody;
@@ -181,7 +181,7 @@ public:
/** Allows (*handle).someBodyOp().
*/
- inline reference_type & SAL_CALL operator*() const
+ reference_type & SAL_CALL operator*() const
{
assert(m_pBody != NULL);
return *m_pBody;
@@ -190,7 +190,7 @@ public:
/** Returns True if the handle does point to a valid body.
*/
- inline bool SAL_CALL is() const
+ bool SAL_CALL is() const
{
return (m_pBody != NULL);
}
@@ -198,7 +198,7 @@ public:
#if defined LIBO_INTERNAL_ONLY
/** Returns True if the handle does point to a valid body.
*/
- inline explicit operator bool() const
+ explicit operator bool() const
{
return is();
}
@@ -206,7 +206,7 @@ public:
/** Returns True if this points to pBody.
*/
- inline bool SAL_CALL operator== (const reference_type * pBody) const
+ bool SAL_CALL operator== (const reference_type * pBody) const
{
return (m_pBody == pBody);
}
@@ -214,7 +214,7 @@ public:
/** Returns True if handle points to the same body.
*/
- inline bool
+ bool
SAL_CALL operator== (const Reference<reference_type> & handle) const
{
return (m_pBody == handle.m_pBody);
@@ -223,7 +223,7 @@ public:
/** Needed to place References into STL collection.
*/
- inline bool
+ bool
SAL_CALL operator!= (const Reference<reference_type> & handle) const
{
return (m_pBody != handle.m_pBody);
@@ -232,7 +232,7 @@ public:
/** Needed to place References into STL collection.
*/
- inline bool
+ bool
SAL_CALL operator< (const Reference<reference_type> & handle) const
{
return (m_pBody < handle.m_pBody);
@@ -241,7 +241,7 @@ public:
/** Needed to place References into STL collection.
*/
- inline bool
+ bool
SAL_CALL operator> (const Reference<reference_type> & handle) const
{
return (m_pBody > handle.m_pBody);