summaryrefslogtreecommitdiff
path: root/sal/rtl/alloc_arena.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-09 10:28:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-09 14:47:17 +0200
commit7ceee0f1ec0e349d0df4980d7fdedbd13c7917c5 (patch)
tree616ab419fe0f01e94740de7faacb393775420589 /sal/rtl/alloc_arena.cxx
parent664db0d945fbb23e115eeea8377e3a4e88541da1 (diff)
Extend loplugin:redundantinline to catch inline functions w/o external linkage
...where "inline" (in its meaning of "this function can be defined in multiple translation units") thus doesn't make much sense. (As discussed in compilerplugins/clang/redundantinline.cxx, exempt such "static inline" functions in include files for now.) All the rewriting has been done automatically by the plugin, except for one instance in sw/source/ui/frmdlg/column.cxx that used to involve an #if), plus some subsequent solenv/clang-format/reformat-formatted-files. Change-Id: Ib8b996b651aeafc03bbdc8890faa05ed50517224 Reviewed-on: https://gerrit.libreoffice.org/61573 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/rtl/alloc_arena.cxx')
-rw-r--r--sal/rtl/alloc_arena.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sal/rtl/alloc_arena.cxx b/sal/rtl/alloc_arena.cxx
index 39e694e017d8..626d05c7b895 100644
--- a/sal/rtl/alloc_arena.cxx
+++ b/sal/rtl/alloc_arena.cxx
@@ -130,7 +130,7 @@ bool rtl_arena_segment_populate(rtl_arena_type * arena)
@precond arena->m_lock acquired.
@precond (*ppSegment == 0)
*/
-inline void rtl_arena_segment_get(
+void rtl_arena_segment_get(
rtl_arena_type * arena,
rtl_arena_segment_type ** ppSegment
)
@@ -151,7 +151,7 @@ inline void rtl_arena_segment_get(
@precond arena->m_lock acquired.
@postcond (*ppSegment == 0)
*/
-inline void rtl_arena_segment_put(
+void rtl_arena_segment_put(
rtl_arena_type * arena,
rtl_arena_segment_type ** ppSegment
)
@@ -178,7 +178,7 @@ inline void rtl_arena_segment_put(
/**
@precond arena->m_lock acquired.
*/
-inline void rtl_arena_freelist_insert (
+void rtl_arena_freelist_insert (
rtl_arena_type * arena,
rtl_arena_segment_type * segment
)
@@ -195,7 +195,7 @@ inline void rtl_arena_freelist_insert (
/**
@precond arena->m_lock acquired.
*/
-inline void rtl_arena_freelist_remove(
+void rtl_arena_freelist_remove(
rtl_arena_type * arena,
rtl_arena_segment_type * segment
)
@@ -281,7 +281,7 @@ void rtl_arena_hash_rescale(
/**
Insert arena hash, and update stats.
*/
-inline void rtl_arena_hash_insert(
+void rtl_arena_hash_insert(
rtl_arena_type * arena,
rtl_arena_segment_type * segment
)