summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-11 15:14:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-11 15:15:15 +0100
commitb66a72cba2f38c3ddc9e7c91a1afd5d8a2279ed8 (patch)
treecb2fe5ce50234c8cd53f38b4e5b878e8847b97a6 /tools
parent6f1bdda2d26dc26f91fd327c82bc7d4b9ee6ab92 (diff)
loplugin: markup the POD tools classes and UniString with SAL_WARN_UNUSED
Change-Id: Idb0636772e4c93d25259487a130720cb62cca5af
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/gen.hxx12
-rw-r--r--tools/inc/tools/string.hxx2
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/inc/tools/gen.hxx b/tools/inc/tools/gen.hxx
index 9a45739aee5b..7c93792b3c4b 100644
--- a/tools/inc/tools/gen.hxx
+++ b/tools/inc/tools/gen.hxx
@@ -28,7 +28,7 @@ class SvStream;
// Pair
-class Pair
+class SAL_WARN_UNUSED Pair
{
public:
long nA;
@@ -73,7 +73,7 @@ inline sal_Bool Pair::operator != ( const Pair& rPair ) const
// Point
-class Point : public Pair
+class SAL_WARN_UNUSED Point : public Pair
{
public:
Point();
@@ -191,7 +191,7 @@ inline Point operator/( const Point &rVal1, const long nVal2 )
// Size
-class Size : public Pair
+class SAL_WARN_UNUSED Size : public Pair
{
public:
Size();
@@ -222,7 +222,7 @@ inline Size::Size( long nWidth, long nHeight ) :
#define RANGE_MAX LONG_MAX
-class Range : public Pair
+class SAL_WARN_UNUSED Range : public Pair
{
public:
Range();
@@ -268,7 +268,7 @@ inline void Range::Justify()
#define SELECTION_MIN LONG_MIN
#define SELECTION_MAX LONG_MAX
-class Selection : public Pair
+class SAL_WARN_UNUSED Selection : public Pair
{
public:
Selection();
@@ -326,7 +326,7 @@ inline void Selection::Justify()
#define RECT_EMPTY ((short)-32767)
-class TOOLS_DLLPUBLIC Rectangle
+class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Rectangle
{
public:
long nLeft;
diff --git a/tools/inc/tools/string.hxx b/tools/inc/tools/string.hxx
index 9e2071cca83d..7603b9727040 100644
--- a/tools/inc/tools/string.hxx
+++ b/tools/inc/tools/string.hxx
@@ -97,7 +97,7 @@ typedef struct _UniStringData
// UniString
-class TOOLS_DLLPUBLIC UniString
+class TOOLS_DLLPUBLIC SAL_WARN_UNUSED UniString
{
private:
UniStringData* mpData;