[Libreoffice-commits] core.git: compilerplugins/clang include/svx svx/source

Noel Grandin noel.grandin at collabora.co.uk
Fri Dec 23 11:43:30 UTC 2016


 compilerplugins/clang/mergeclasses.results |    1 -
 include/svx/nbdtmg.hxx                     |   28 +++++++---------------------
 svx/source/sidebar/nbdtmg.cxx              |   11 ++---------
 3 files changed, 9 insertions(+), 31 deletions(-)

New commits:
commit c4c23515d6f94f5d06215a9b0f9ca605655e3497
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Dec 23 10:44:33 2016 +0200

    merge svx::sidebar::BulletsSettings with svx::sidebar::BulletsSettings_Impl
    
    Change-Id: I7cf6bb4cf3aa532718753904c2100882b0df6775
    Reviewed-on: https://gerrit.libreoffice.org/32373
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/mergeclasses.results b/compilerplugins/clang/mergeclasses.results
index 8a7db69..ab9a01e 100644
--- a/compilerplugins/clang/mergeclasses.results
+++ b/compilerplugins/clang/mergeclasses.results
@@ -344,7 +344,6 @@ merge svx::IControllerFeatureInvalidation with FmXFormShell
 merge svx::IFocusObserver with svx::FmTextControlShell
 merge svx::IPropertyValueProvider with svx::PropertyValueProvider
 merge svx::RegistrationItemSetHolder with svx::DatabaseRegistrationDialog
-merge svx::sidebar::BulletsSettings with svx::sidebar::BulletsSettings_Impl
 merge svx::sidebar::SvxShapeCommandsMap with svx::sidebar::DefaultShapesPanel
 merge svxform::(anonymous namespace)::IScript with svxform::(anonymous namespace)::NewStyleUNOScript
 merge svxform::DispatchInterceptor with svxform::FormController
diff --git a/include/svx/nbdtmg.hxx b/include/svx/nbdtmg.hxx
index bfab007..d79976b 100644
--- a/include/svx/nbdtmg.hxx
+++ b/include/svx/nbdtmg.hxx
@@ -76,28 +76,14 @@ typedef std::vector< std::shared_ptr<NumSettings_Impl> > NumSettingsArr_Impl;
 
 class  SVX_DLLPUBLIC BulletsSettings
 {
-    public:
-        bool            bIsCustomized;
-        rtl::OUString   sDescription;
-    public:
-        BulletsSettings() :
-            bIsCustomized(false)
-            {}
-        virtual ~BulletsSettings(){}
+public:
+    bool            bIsCustomized;
+    rtl::OUString   sDescription;
+    sal_Unicode     cBulletChar;
+    vcl::Font       aFont;
+    BulletsSettings() : bIsCustomized(false), cBulletChar(0) {}
 };
 
-class  SVX_DLLPUBLIC BulletsSettings_Impl:public BulletsSettings
-{
-    public:
-        sal_Unicode cBulletChar;
-        vcl::Font   aFont;
-
-    public:
-        BulletsSettings_Impl()
-            : cBulletChar(0)
-            {}
-        virtual ~BulletsSettings_Impl() override {}
-};
 
 class  SVX_DLLPUBLIC NumberSettings_Impl
 {
@@ -180,7 +166,7 @@ class SVX_DLLPUBLIC BulletsTypeMgr: public NBOTypeMgrBase
     public:
         static sal_Unicode aDynamicBulletTypes[DEFAULT_BULLET_TYPES];
         static sal_Unicode aDynamicRTLBulletTypes[DEFAULT_BULLET_TYPES];
-        static BulletsSettings_Impl* pActualBullets[DEFAULT_BULLET_TYPES];
+        static BulletsSettings* pActualBullets[DEFAULT_BULLET_TYPES];
     public:
         BulletsTypeMgr();
         virtual ~BulletsTypeMgr() override {}
diff --git a/svx/source/sidebar/nbdtmg.cxx b/svx/source/sidebar/nbdtmg.cxx
index af5a2c2..ac95d7b 100644
--- a/svx/source/sidebar/nbdtmg.cxx
+++ b/svx/source/sidebar/nbdtmg.cxx
@@ -237,7 +237,7 @@ void NBOTypeMgrBase::ImplStore(const OUString& filename)
 }
 
 // Character Bullet Type lib
-BulletsSettings_Impl* BulletsTypeMgr::pActualBullets[] ={nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr};
+BulletsSettings* BulletsTypeMgr::pActualBullets[] ={nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr,nullptr};
 sal_Unicode BulletsTypeMgr::aDynamicBulletTypes[]={' ',' ',' ',' ',' ',' ',' ',' '};
 sal_Unicode BulletsTypeMgr::aDynamicRTLBulletTypes[]={' ',' ',' ',' ',' ',' ',' ',' '};
 
@@ -260,7 +260,7 @@ void BulletsTypeMgr::Init()
 
     for (sal_uInt16 i=0;i<DEFAULT_BULLET_TYPES;i++)
     {
-        pActualBullets[i] = new BulletsSettings_Impl;
+        pActualBullets[i] = new BulletsSettings;
         pActualBullets[i]->cBulletChar = aDefaultBulletTypes[i];
         pActualBullets[i]->aFont =rActBulletFont;
         pActualBullets[i]->sDescription = SVX_RESSTR( RID_SVXSTR_BULLET_DESCRIPTION_0 + i );
@@ -306,7 +306,6 @@ sal_uInt16 BulletsTypeMgr::GetNBOIndexForNumRule(SvxNumRule& aNum,sal_uInt16 mLe
             }
         }
     }*/
-    //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
     for(sal_uInt16 i = nFromIndex; i < DEFAULT_BULLET_TYPES; i++)
     {
         if ( (cChar == pActualBullets[i]->cBulletChar||
@@ -354,7 +353,6 @@ void BulletsTypeMgr::RelplaceNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uI
 
         aDynamicBulletTypes[nIndex] = cChar;
     }*/
-    //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
     if ( nIndex >= DEFAULT_BULLET_TYPES )
         return;
 
@@ -394,7 +392,6 @@ void BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1
 
         cChar = aDynamicBulletTypes[nIndex];
     }*/
-    //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
     if ( nIndex >= DEFAULT_BULLET_TYPES )
         return;
     cChar = pActualBullets[nIndex]->cBulletChar;
@@ -424,8 +421,6 @@ void BulletsTypeMgr::ApplyNumRule(SvxNumRule& aNum, sal_uInt16 nIndex, sal_uInt1
 OUString BulletsTypeMgr::GetDescription(sal_uInt16 nIndex, bool /*isDefault*/)
 {
     OUString sRet;
-    //sal_uInt16 nLength = 0;
-    //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
 
     if ( nIndex >= DEFAULT_BULLET_TYPES )
         return sRet;
@@ -438,8 +433,6 @@ OUString BulletsTypeMgr::GetDescription(sal_uInt16 nIndex, bool /*isDefault*/)
 bool BulletsTypeMgr::IsCustomized(sal_uInt16 nIndex)
 {
     bool bRet = false;
-    //sal_uInt16 nLength = 0;
-    //nLength = sizeof(pActualBullets)/sizeof(BulletsSettings_Impl);
 
     if ( nIndex >= DEFAULT_BULLET_TYPES )
         bRet = false;


More information about the Libreoffice-commits mailing list