Commits

Anonymous committed 8cdd5e0

itemesets: removing unused private functions in SwattrSet

Comments (0)

Files changed (2)

svtools/source/items1/itemset.cxx

     if(pToPool && pToPool != m_pPool)
     {
         SfxItemSet* const pNewSet = new SfxItemSet(*pToPool, &m_vWhichRanges[0]);
-        pNewSet->m_pItems->reserve(m_pItems->size());
         if(bItems)
         {
             for(ItemVector::const_iterator pItemEntry = m_pItems->begin();

sw/inc/swatrset.hxx

 
 class SW_DLLPUBLIC SwAttrSet : public SfxItemSet
 { 
-private:
-    void ChangedToDefault(const sfx::item::ItemVector::const_iterator& pItemEntryOld, SwAttrSet* pOld, SwAttrSet* pNew);
-    void ChangedFromDefault(const sfx::item::ItemVector::const_iterator& pItemEntryNew, SwAttrSet* pOld, SwAttrSet* pNew);
-    void MarkChangesForBroadcast(const SwAttrSet* const pOldState, SwAttrSet* pOld, SwAttrSet* pNew);
-public:
-    SwAttrSet( SwAttrPool&, USHORT nWhich1, USHORT nWhich2 );
-    SwAttrSet( SwAttrPool&, const USHORT* nWhichPairTable );
-    SwAttrSet( const SwAttrSet& );
+    public:
+        SwAttrSet( SwAttrPool&, USHORT nWhich1, USHORT nWhich2 );
+        SwAttrSet( SwAttrPool&, const USHORT* nWhichPairTable );
+        SwAttrSet( const SwAttrSet& );
 
-    virtual SfxItemSet* Clone(bool bItems = true, SfxItemPool *pToPool = 0) const;
+        virtual SfxItemSet* Clone(bool bItems = true, SfxItemPool *pToPool = 0) const;
 
-    int Put_BC( const SfxPoolItem& rAttr, SwAttrSet* pOld, SwAttrSet* pNew );
-    int Put_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
+        int Put_BC( const SfxPoolItem& rAttr, SwAttrSet* pOld, SwAttrSet* pNew );
+        int Put_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
 
-    // ein Item oder einen Bereich loeschen
-    USHORT ClearItem_BC( USHORT nWhich, SwAttrSet* pOld, SwAttrSet* pNew );
-    USHORT ClearItem_BC( USHORT nWhich1, USHORT nWhich2,
-                        SwAttrSet* pOld = 0, SwAttrSet* pNew = 0 );
+        // ein Item oder einen Bereich loeschen
+        USHORT ClearItem_BC( USHORT nWhich, SwAttrSet* pOld, SwAttrSet* pNew );
+        USHORT ClearItem_BC( USHORT nWhich1, USHORT nWhich2,
+                            SwAttrSet* pOld = 0, SwAttrSet* pNew = 0 );
 
-    int Intersect_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
+        int Intersect_BC( const SfxItemSet& rSet, SwAttrSet* pOld, SwAttrSet* pNew );
 
-    void GetPresentation( SfxItemPresentation ePres,
-        SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String &rText ) const;
+        void GetPresentation( SfxItemPresentation ePres,
+            SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String &rText ) const;
 
-    SwAttrPool* GetPool() const { return (SwAttrPool*)SfxItemSet::GetPool(); }
+        SwAttrPool* GetPool() const { return (SwAttrPool*)SfxItemSet::GetPool();
+}
 
     // kopiere die Attribute ggfs. ueber Dokumentgrenzen
     void CopyToModify( SwModify& rMod ) const;