[Libreoffice-commits] core.git: Branch 'aoo/trunk' - svl/inc svl/source

Herbert Dürr hdu at apache.org
Tue Nov 26 02:08:03 PST 2013


 svl/inc/svl/smplhint.hxx       |    6 +++---
 svl/source/notify/smplhint.cxx |    9 ---------
 2 files changed, 3 insertions(+), 12 deletions(-)

New commits:
commit 5cd09cc74da93da4c91c665822b6ab9a0d704a7a
Author: Herbert Dürr <hdu at apache.org>
Date:   Tue Nov 26 09:00:15 2013 +0000

    #i123753# WaE: fix unoedhlp.hxx declaration of 'nId' shadowing a member of SimpleHint
    
    Happy new times: Now even simple compiler warning fixes need their own issue.

diff --git a/svl/inc/svl/smplhint.hxx b/svl/inc/svl/smplhint.hxx
index da3d712..fdf5ac9 100644
--- a/svl/inc/svl/smplhint.hxx
+++ b/svl/inc/svl/smplhint.hxx
@@ -64,11 +64,11 @@
 class SVL_DLLPUBLIC SfxSimpleHint: public SfxHint
 {
 private:
-    sal_uLong nId;
+    sal_uLong mnId;
 public:
     TYPEINFO();
-    SfxSimpleHint( sal_uLong nId );
-    sal_uLong GetId() const { return nId; }
+    SfxSimpleHint( sal_uLong nId ) { mnId = nId; }
+    sal_uLong GetId() const { return mnId; }
 };
 
 //--------------------------------------------------------------------
diff --git a/svl/source/notify/smplhint.cxx b/svl/source/notify/smplhint.cxx
index 227174e..a582b3a 100644
--- a/svl/source/notify/smplhint.cxx
+++ b/svl/source/notify/smplhint.cxx
@@ -32,12 +32,3 @@
 
 TYPEINIT1(SfxSimpleHint, SfxHint);
 
-//====================================================================
-// creates a SimpleHint with the type nId
-
-SfxSimpleHint::SfxSimpleHint( sal_uLong nIdP )
-{
-    nId = nIdP;
-}
-
-


More information about the Libreoffice-commits mailing list