[Libreoffice-commits] .: tools/inc
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 11 07:52:15 PDT 2012
tools/inc/tools/gen.hxx | 12 ++++++------
tools/inc/tools/string.hxx | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit b66a72cba2f38c3ddc9e7c91a1afd5d8a2279ed8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Oct 11 15:14:35 2012 +0100
loplugin: markup the POD tools classes and UniString with SAL_WARN_UNUSED
Change-Id: Idb0636772e4c93d25259487a130720cb62cca5af
diff --git a/tools/inc/tools/gen.hxx b/tools/inc/tools/gen.hxx
index 9a45739..7c93792 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 9e2071c..7603b97 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;
More information about the Libreoffice-commits
mailing list