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

Miklos Vajna vmiklos at collabora.co.uk
Tue May 24 11:49:59 UTC 2016


 sw/inc/fmtclds.hxx               |   26 +++++++++++++-------------
 sw/source/core/layout/atrfrm.cxx |   22 +++++++++++-----------
 2 files changed, 24 insertions(+), 24 deletions(-)

New commits:
commit 1520d59850f027bace775e6055bb4632667573c3
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue May 24 08:14:14 2016 +0200

    sw: prefix members of SwColumn
    
    Change-Id: I5f7f0ae87a94e7bdb012bd73dea5cbb5115df448
    Reviewed-on: https://gerrit.libreoffice.org/25399
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/sw/inc/fmtclds.hxx b/sw/inc/fmtclds.hxx
index 2b7fb7f..9938f76 100644
--- a/sw/inc/fmtclds.hxx
+++ b/sw/inc/fmtclds.hxx
@@ -31,28 +31,28 @@
 /// ColumnDescriptor
 class SwColumn
 {
-    sal_uInt16 nWish;   /**< Desired width, borders included.
+    sal_uInt16 m_nWish;   /**< Desired width, borders included.
                          It is inversely proportional to the ratio of
                          desired width environment / current width column. */
-    sal_uInt16 nUpper;  ///< Top border.
-    sal_uInt16 nLower;  ///< Bottom border.
-    sal_uInt16 nLeft;   ///< Left border.
-    sal_uInt16 nRight;  ///< Right border.
+    sal_uInt16 m_nUpper;  ///< Top border.
+    sal_uInt16 m_nLower;  ///< Bottom border.
+    sal_uInt16 m_nLeft;   ///< Left border.
+    sal_uInt16 m_nRight;  ///< Right border.
 
 public:
     SwColumn();
 
     bool operator==( const SwColumn & ) const;
 
-    void SetWishWidth( sal_uInt16 nNew ) { nWish  = nNew; }
-    void SetLeft ( sal_uInt16  nNew ) { nLeft  = nNew; }
-    void SetRight( sal_uInt16  nNew ) { nRight = nNew; }
+    void SetWishWidth( sal_uInt16 nNew ) { m_nWish  = nNew; }
+    void SetLeft ( sal_uInt16  nNew ) { m_nLeft  = nNew; }
+    void SetRight( sal_uInt16  nNew ) { m_nRight = nNew; }
 
-    sal_uInt16 GetWishWidth() const { return nWish;  }
-    sal_uInt16 GetUpper() const { return nUpper; }
-    sal_uInt16 GetLower() const { return nLower; }
-    sal_uInt16 GetLeft () const { return nLeft; }
-    sal_uInt16 GetRight() const { return nRight; }
+    sal_uInt16 GetWishWidth() const { return m_nWish;  }
+    sal_uInt16 GetUpper() const { return m_nUpper; }
+    sal_uInt16 GetLower() const { return m_nLower; }
+    sal_uInt16 GetLeft () const { return m_nLeft; }
+    sal_uInt16 GetRight() const { return m_nRight; }
 
     void dumpAsXml(struct _xmlTextWriter* pWriter) const;
 };
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx
index 4f51826..849af3b 100644
--- a/sw/source/core/layout/atrfrm.cxx
+++ b/sw/source/core/layout/atrfrm.cxx
@@ -779,17 +779,17 @@ void SwFormatPageDesc::dumpAsXml(xmlTextWriterPtr pWriter) const
 //  Partially implemented inline in hxx
 
 SwColumn::SwColumn() :
-    nWish ( 0 ),
-    nUpper( 0 ),
-    nLower( 0 ),
-    nLeft ( 0 ),
-    nRight( 0 )
+    m_nWish ( 0 ),
+    m_nUpper( 0 ),
+    m_nLower( 0 ),
+    m_nLeft ( 0 ),
+    m_nRight( 0 )
 {
 }
 
 bool SwColumn::operator==( const SwColumn &rCmp ) const
 {
-    return  nWish    == rCmp.GetWishWidth() &&
+    return  m_nWish    == rCmp.GetWishWidth() &&
             GetLeft()  == rCmp.GetLeft() &&
             GetRight() == rCmp.GetRight() &&
             GetUpper() == rCmp.GetUpper() &&
@@ -799,11 +799,11 @@ bool SwColumn::operator==( const SwColumn &rCmp ) const
 void SwColumn::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
     xmlTextWriterStartElement(pWriter, BAD_CAST("swColumn"));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWish"), BAD_CAST(OString::number(nWish).getStr()));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(nUpper).getStr()));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(nLower).getStr()));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLeft"), BAD_CAST(OString::number(nLeft).getStr()));
-    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nRight"), BAD_CAST(OString::number(nRight).getStr()));
+    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nWish"), BAD_CAST(OString::number(m_nWish).getStr()));
+    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(m_nUpper).getStr()));
+    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(m_nLower).getStr()));
+    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLeft"), BAD_CAST(OString::number(m_nLeft).getStr()));
+    xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nRight"), BAD_CAST(OString::number(m_nRight).getStr()));
     xmlTextWriterEndElement(pWriter);
 }
 


More information about the Libreoffice-commits mailing list