summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-22 20:50:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-22 20:50:27 +0200
commit98aa81bcb7782600cba17e67908d976188cdce42 (patch)
tree084d15c5223cd09994195ed7a716fd639777dfc2 /toolkit/source
parenta77163f0bd21d018da0e195974b42d6d71503592 (diff)
-Werror,-Wunused-function (--disable-assert-always-abort)
Change-Id: I5bdecf34dea5baf6c5ef1c48e5995c2ae8ec78df
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 622a2981e73a..682d4365e217 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -761,10 +761,12 @@ static ComponentInfo const aComponentInfos [] =
{ OUStringLiteral("workwindow"), WindowType::WORKWINDOW }
};
+#if !defined NDEBUG
bool ComponentInfoCompare( const ComponentInfo & lhs, const ComponentInfo & rhs)
{
return rtl_str_compare_WithLength(lhs.sName.data, lhs.sName.size, rhs.sName.data, rhs.sName.size) < 0;
}
+#endif
bool ComponentInfoFindCompare( const ComponentInfo & lhs, const OUString & s)
{