[Libreoffice-commits] .: 2 commits - tools/inc vcl/inc

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Oct 12 02:16:39 PDT 2012


 tools/inc/tools/bigint.hxx |    2 +-
 tools/inc/tools/color.hxx  |    2 +-
 vcl/inc/vcl/layout.hxx     |    5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)

New commits:
commit d0144bcb8899845982a8172d870f337533adaf35
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 12 10:15:36 2012 +0100

    Resolves: fdo#55807 crash in tools->outline numbering
    
    Change-Id: I4233fa63d49ed0a3ec3de7fe04eadead9fa7d1bf

diff --git a/vcl/inc/vcl/layout.hxx b/vcl/inc/vcl/layout.hxx
index 29fa382..5e22537 100644
--- a/vcl/inc/vcl/layout.hxx
+++ b/vcl/inc/vcl/layout.hxx
@@ -314,6 +314,11 @@ private:
     {
         int x;
         int y;
+        ExtendedGridEntry()
+            : x(0)
+            , y(0)
+        {
+        }
     };
 
     typedef boost::multi_array<ExtendedGridEntry, 2> ext_array_type;
commit 639c256dc5f4694b7204773ea4661084289c8b81
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 12 09:42:37 2012 +0100

    loplugin: markup some more suitable classes with SAL_WARN_UNUSED
    
    Change-Id: Ia89ef962aed9ecd1e907c9f46e2f05a7018ca8a0

diff --git a/tools/inc/tools/bigint.hxx b/tools/inc/tools/bigint.hxx
index 0637ddd..8570856 100644
--- a/tools/inc/tools/bigint.hxx
+++ b/tools/inc/tools/bigint.hxx
@@ -36,7 +36,7 @@ namespace binfilter { class SbxINT64Converter; }
 
 class Fraction;
 
-class TOOLS_DLLPUBLIC BigInt
+class TOOLS_DLLPUBLIC SAL_WARN_UNUSED BigInt
 {
 #ifdef _TLBIGINT_INT64
     friend class ::binfilter::SbxINT64Converter;
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx
index 59f28d9..823f341 100644
--- a/tools/inc/tools/color.hxx
+++ b/tools/inc/tools/color.hxx
@@ -89,7 +89,7 @@ typedef sal_uInt32 ColorData;
 
 // Color
 
-class TOOLS_DLLPUBLIC Color
+class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Color
 {
 protected:
     ColorData           mnColor;


More information about the Libreoffice-commits mailing list