sw/source/filter/ww8/ww8graf.cxx |   10 +++++-----
 sw/source/filter/ww8/ww8par.hxx  |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 895494f2323308df44f6546026f7ed5463b26631
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Wed Mar 8 11:42:22 2017 +0100

    Some more long -> WW8_CP (to avoid loplugin:loopvartoosmall)
    
    Change-Id: Icdf00da8e627d5e3a671acd17af58734873f4bdb

diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 7ab52cf..e0c5fd6 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -505,7 +505,7 @@ void SwWW8ImplReader::InsertTxbxStyAttrs( SfxItemSet& rS, 
sal_uInt16 nColl )
 
 }
 
-static void lcl_StripFields(OUString &rString, long &rNewStartCp)
+static void lcl_StripFields(OUString &rString, WW8_CP &rNewStartCp)
 {
     sal_Int32 nStartPos = 0;
     for (;;)
@@ -561,7 +561,7 @@ public:
 
 // InsertAttrsAsDrawingAttrs() sets attributes between StartCp and EndCp.
 // Style attributes are set as hard, paragraph and character attributes.
-void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(long nStartCp, long nEndCp,
+void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp,
     ManTypes eType, bool bONLYnPicLocFc)
 {
     /*
@@ -735,7 +735,7 @@ void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(long 
nStartCp, long nEndCp,
             aIter->GetEndPos()-nStartCp));
         OUString aString(m_pDrawEditEngine->GetText(aSel));
         const sal_Int32 nOrigLen = aString.getLength();
-        long nDummy(0);
+        WW8_CP nDummy(0);
         lcl_StripFields(aString, nDummy);
 
         sal_Int32 nChanged;
@@ -964,7 +964,7 @@ OutlinerParaObject* 
SwWW8ImplReader::ImportAsOutliner(OUString &rString, WW8_CP
         m_pDrawEditEngine->SetParaAttribs(0, 
m_pDrawEditEngine->GetEmptyItemSet());
 
         // Strip out fields, leaving the result
-        long nDummy(0);
+        WW8_CP nDummy(0);
         lcl_StripFields(rString, nDummy);
         // Strip out word's special characters for the simple string
         rString = rString.replaceAll("\x01", "");
@@ -1006,7 +1006,7 @@ void SwWW8ImplReader::InsertTxbxText(SdrTextObj* pTextObj,
     const OUString aOrigString(aString);
     if( bTextWasRead )
     {
-        long nNewStartCp = nStartCp;
+        WW8_CP nNewStartCp = nStartCp;
         lcl_StripFields(aString, nNewStartCp);
 
         if (aString.getLength()!=1)
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index 748e5ae..0e35089 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -1557,7 +1557,7 @@ private:
     SdrObject *ReadArc(WW8_DPHEAD* pHd, SfxAllItemSet &rSet);
     SdrObject *ReadPolyLine(WW8_DPHEAD* pHd, SfxAllItemSet &rSet);
     void InsertTxbxStyAttrs( SfxItemSet& rS, sal_uInt16 nColl );
-    void InsertAttrsAsDrawingAttrs(long nStartCp, long nEndCp, ManTypes eType, 
bool bONLYnPicLocFc=false);
+    void InsertAttrsAsDrawingAttrs(WW8_CP nStartCp, WW8_CP nEndCp, ManTypes 
eType, bool bONLYnPicLocFc=false);
 
     bool GetTxbxTextSttEndCp(WW8_CP& rStartCp, WW8_CP& rEndCp, sal_uInt16 
nTxBxS,
         sal_uInt16 nSequence);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to