summaryrefslogtreecommitdiffstats
path: root/unotools/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
commit7c704c78d3c652504c064b4ac7af55a2c1ee49bb (patch)
tree623358cf25839219ef4fd90eea4f3eaa55389a1f /unotools/inc
parentFix Possible inefficient checking for 'aChrSetArr' emptiness (diff)
downloadcore-7c704c78d3c652504c064b4ac7af55a2c1ee49bb.tar.gz
core-7c704c78d3c652504c064b4ac7af55a2c1ee49bb.zip
Removed some unused parameters; added SAL_UNUSED_PARAMETER.
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
Diffstat (limited to 'unotools/inc')
-rw-r--r--unotools/inc/unotools/loghelper.hxx11
-rw-r--r--unotools/inc/unotools/ucbstreamhelper.hxx6
2 files changed, 6 insertions, 11 deletions
diff --git a/unotools/inc/unotools/loghelper.hxx b/unotools/inc/unotools/loghelper.hxx
index bae5c7ed09c4..24f66bd91d38 100644
--- a/unotools/inc/unotools/loghelper.hxx
+++ b/unotools/inc/unotools/loghelper.hxx
@@ -30,14 +30,7 @@
namespace css = ::com::sun::star;
-class LogHelper
-{
-public:
- LogHelper();
- ~LogHelper();
-
- static void logIt(const css::uno::Exception&){}
-};
+namespace LogHelper {
inline void logIt(const css::uno::Exception& ex)
{
@@ -48,6 +41,8 @@ inline void logIt(const css::uno::Exception& ex)
OSL_FAIL(::rtl::OUStringToOString(sMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr());
}
+}
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unotools/inc/unotools/ucbstreamhelper.hxx b/unotools/inc/unotools/ucbstreamhelper.hxx
index 8c20fd506c7b..f309b018cff8 100644
--- a/unotools/inc/unotools/ucbstreamhelper.hxx
+++ b/unotools/inc/unotools/ucbstreamhelper.hxx
@@ -67,13 +67,13 @@ namespace utl
{
public:
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
- UcbLockBytesHandler* pHandler=0, sal_Bool bForceSynchron=sal_True );
+ UcbLockBytesHandler* pHandler=0 );
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
NS_UNO::Reference < NS_TASK::XInteractionHandler >,
- UcbLockBytesHandler* pHandler=0, sal_Bool bForceSynchron=sal_True );
+ UcbLockBytesHandler* pHandler=0 );
static SvStream* CreateStream( const String& rFileName, StreamMode eOpenMode,
sal_Bool bFileExists,
- UcbLockBytesHandler* pHandler=0, sal_Bool bForceSynchron=sal_True );
+ UcbLockBytesHandler* pHandler=0 );
static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XInputStream > xStream );
static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XStream > xStream );
static SvStream* CreateStream( NS_UNO::Reference < NS_IO::XInputStream > xStream, sal_Bool bCloseStream );