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

Stephan Bergmann sbergman at redhat.com
Tue May 26 01:13:20 PDT 2015


 sw/source/core/unocore/unotbl.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b255913e412a7894928f92e29d6445bc412a87db
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue May 26 10:12:49 2015 +0200

    loplugin:staticcall
    
    Change-Id: I5695a7854d22d10681739dd2eabe41f9802089f5

diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index c698cd2..cbd5bc6 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -3297,7 +3297,7 @@ void SwXCellRange::setPropertyValue(const OUString& rPropertyName, const uno::An
                 case FN_UNO_TABLE_CELL_BACKGROUND:
                 {
                     SvxBrushItem aBrush( RES_BACKGROUND );
-                    pDoc->GetBoxAttr( *m_pTableCrsr, aBrush );
+                    SwDoc::GetBoxAttr( *m_pTableCrsr, aBrush );
                     ((SfxPoolItem&)aBrush).PutValue(aValue, pEntry->nMemberId);
                     pDoc->SetBoxAttr( *m_pTableCrsr, aBrush );
 
@@ -3405,7 +3405,7 @@ uno::Any SwXCellRange::getPropertyValue(const OUString& rPropertyName)
                 case FN_UNO_TABLE_CELL_BACKGROUND:
                 {
                     SvxBrushItem aBrush( RES_BACKGROUND );
-                    if(m_pTableCrsr->GetDoc()->GetBoxAttr( *m_pTableCrsr, aBrush ))
+                    if(SwDoc::GetBoxAttr( *m_pTableCrsr, aBrush ))
                         aBrush.QueryValue(aRet, pEntry->nMemberId);
 
                 }
@@ -3418,7 +3418,7 @@ uno::Any SwXCellRange::getPropertyValue(const OUString& rPropertyName)
                                     SID_ATTR_BORDER_INNER, SID_ATTR_BORDER_INNER,
                                     0);
                     aSet.Put(SvxBoxInfoItem( SID_ATTR_BORDER_INNER ));
-                    pDoc->GetTabBorders(*m_pTableCrsr, aSet);
+                    SwDoc::GetTabBorders(*m_pTableCrsr, aSet);
                     const SvxBoxItem& rBoxItem = static_cast<const SvxBoxItem&>(aSet.Get(RES_BOX));
                     rBoxItem.QueryValue(aRet, pEntry->nMemberId);
                 }


More information about the Libreoffice-commits mailing list