[Libreoffice-commits] core.git: codemaker/source

Stephan Bergmann sbergman at redhat.com
Mon Dec 8 01:35:02 PST 2014


 codemaker/source/cppumaker/cpputype.cxx |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

New commits:
commit 9d5e53b67c7c131ab4cdc8e103373be2be7830c2
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Dec 8 10:34:21 2014 +0100

    protected -> private
    
    Change-Id: I807b31eaa0b0cd68e0ca018b6df4269c1aab5763

diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx
index ccd908d..5c015c9 100644
--- a/codemaker/source/cppumaker/cpputype.cxx
+++ b/codemaker/source/cppumaker/cpputype.cxx
@@ -1039,17 +1039,13 @@ public:
     void dumpAttributesCppuDecl(FileStream & out, std::set< OUString > * seen);
     void dumpMethodsCppuDecl(FileStream & out, std::set< OUString > * seen);
 
-protected:
+private:
     virtual void addComprehensiveGetCppuTypeIncludes(
         codemaker::cppumaker::Includes & includes) const SAL_OVERRIDE;
 
     virtual sal_uInt32 checkInheritedMemberCount() const SAL_OVERRIDE
     { return BaseOffset(m_typeMgr, entity_).get(); }
 
-    sal_uInt32  m_inheritedMemberCount;
-    bool        m_isDeprecated;
-
-private:
     void dumpExceptionSpecification(
         FileStream & out, std::vector< OUString > const & exceptions,
         bool runtimeException);
@@ -1063,16 +1059,16 @@ private:
         std::vector< OUString > const & exceptions, bool runtimeException);
 
     rtl::Reference< unoidl::InterfaceTypeEntity > entity_;
+    bool m_isDeprecated;
 };
 
 InterfaceType::InterfaceType(
     rtl::Reference< unoidl::InterfaceTypeEntity > const & entity,
     OUString const & name, rtl::Reference< TypeManager > const & typeMgr):
-    CppuType(name, typeMgr), entity_(entity)
+    CppuType(name, typeMgr), entity_(entity),
+    m_isDeprecated(isDeprecated(entity->getAnnotations()))
 {
     assert(entity.is());
-    m_inheritedMemberCount = 0;
-    m_isDeprecated = isDeprecated(entity->getAnnotations());
 }
 
 void InterfaceType::dumpDeclaration(FileStream & out) {


More information about the Libreoffice-commits mailing list