sw/source/filter/ww8/ww8toolbar.cxx |   56 ++++++++++++++++++------------------
 sw/source/filter/ww8/ww8toolbar.hxx |   38 ++++++++++++------------
 2 files changed, 47 insertions(+), 47 deletions(-)

New commits:
commit 9c796266470183f673eb58a8637dfe621eefa8b3
Author:     Miklos Vajna <vmik...@collabora.com>
AuthorDate: Mon Jun 27 08:44:40 2022 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Jun 27 09:23:39 2022 +0200

    sw: prefix members of ww8toolbar
    
    Kme, MCD, MacroName and MacroNames
    
    See tdf#94879 for motivation.
    
    Change-Id: Ida3a41b22887f5a21b3be48665fa722d4ff2b027
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136449
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Tested-by: Jenkins

diff --git a/sw/source/filter/ww8/ww8toolbar.cxx 
b/sw/source/filter/ww8/ww8toolbar.cxx
index ad558141cda3..fb31b698ecaa 100644
--- a/sw/source/filter/ww8/ww8toolbar.cxx
+++ b/sw/source/filter/ww8/ww8toolbar.cxx
@@ -886,7 +886,7 @@ bool TcgSttbfCore::Read( SvStream& rS )
 }
 
 MacroNames::MacroNames() :
- iMac( 0 )
+ m_iMac( 0 )
 {
 }
 
@@ -899,24 +899,24 @@ bool MacroNames::Read( SvStream &rS)
     SAL_INFO("sw.ww8","MacroNames::Read() stream pos 0x" << std::hex << 
rS.Tell() );
     nOffSet = rS.Tell();
     Tcg255SubStruct::Read( rS );
-    rS.ReadUInt16( iMac );
-    if ( iMac )
+    rS.ReadUInt16( m_iMac );
+    if ( m_iMac )
     {
         //even an empty MacroName will take 2 bytes
         size_t nMaxAvailableRecords = rS.remainingSize()/sizeof(sal_uInt16);
-        if (iMac > nMaxAvailableRecords)
+        if (m_iMac > nMaxAvailableRecords)
             return false;
-        rgNames.reset( new MacroName[ iMac ] );
-        for ( sal_Int32 index = 0; index < iMac; ++index )
+        m_rgNames.reset( new MacroName[ m_iMac ] );
+        for ( sal_Int32 index = 0; index < m_iMac; ++index )
         {
-            if ( !rgNames[ index ].Read( rS ) )
+            if ( !m_rgNames[ index ].Read( rS ) )
                 return false;
         }
     }
     return rS.good();
 }
 
-MacroName::MacroName():ibst(0)
+MacroName::MacroName():m_ibst(0)
 {
 }
 
@@ -924,8 +924,8 @@ bool MacroName::Read(SvStream &rS)
 {
     SAL_INFO("sw.ww8","MacroName::Read() stream pos 0x" << std::hex << 
rS.Tell() );
     nOffSet = rS.Tell();
-    rS.ReadUInt16( ibst );
-    return xstz.Read( rS );
+    rS.ReadUInt16( m_ibst );
+    return m_xstz.Read( rS );
 }
 
 Xstz::Xstz():chTerm(0)
@@ -945,12 +945,12 @@ Xstz::Read(SvStream &rS)
     return rS.good();
 }
 
-Kme::Kme() : reserved1(0)
-,reserved2(0)
-,kcm1(0)
-,kcm2(0)
-,kt(0)
-,param(0)
+Kme::Kme() : m_reserved1(0)
+,m_reserved2(0)
+,m_kcm1(0)
+,m_kcm2(0)
+,m_kt(0)
+,m_param(0)
 {
 }
 
@@ -963,7 +963,7 @@ Kme::Read(SvStream &rS)
 {
     SAL_INFO("sw.ww8","Kme::Read() stream pos 0x" << std::hex << rS.Tell() );
     nOffSet = rS.Tell();
-    rS.ReadInt16( reserved1 ).ReadInt16( reserved2 ).ReadUInt16( kcm1 
).ReadUInt16( kcm2 ).ReadUInt16( kt ).ReadUInt32( param );
+    rS.ReadInt16( m_reserved1 ).ReadInt16( m_reserved2 ).ReadUInt16( m_kcm1 
).ReadUInt16( m_kcm2 ).ReadUInt16( m_kt ).ReadUInt32( m_param );
     return rS.good();
 }
 
@@ -980,15 +980,15 @@ bool Acd::Read(SvStream &rS)
     return rS.good();
 }
 
-MCD::MCD() :  reserved1(0x56)
-,reserved2( 0 )
-,ibst( 0 )
-,ibstName( 0 )
-,reserved3( 0xFFFF )
-,reserved4( 0 )
-,reserved5( 0 )
-,reserved6( 0 )
-,reserved7( 0 )
+MCD::MCD() :  m_reserved1(0x56)
+,m_reserved2( 0 )
+,m_ibst( 0 )
+,m_ibstName( 0 )
+,m_reserved3( 0xFFFF )
+,m_reserved4( 0 )
+,m_reserved5( 0 )
+,m_reserved6( 0 )
+,m_reserved7( 0 )
 {
 }
 
@@ -996,8 +996,8 @@ bool MCD::Read(SvStream &rS)
 {
     SAL_INFO("sw.ww8","MCD::Read() stream pos 0x" << rS.Tell() );
     nOffSet = rS.Tell();
-    rS.ReadSChar( reserved1 ).ReadUChar( reserved2 ).ReadUInt16( ibst 
).ReadUInt16( ibstName ).ReadUInt16( reserved3 );
-    rS.ReadUInt32( reserved4 ).ReadUInt32( reserved5 ).ReadUInt32( reserved6 
).ReadUInt32( reserved7 );
+    rS.ReadSChar( m_reserved1 ).ReadUChar( m_reserved2 ).ReadUInt16( m_ibst 
).ReadUInt16( m_ibstName ).ReadUInt16( m_reserved3 );
+    rS.ReadUInt32( m_reserved4 ).ReadUInt32( m_reserved5 ).ReadUInt32( 
m_reserved6 ).ReadUInt32( m_reserved7 );
     return rS.good();
 }
 
diff --git a/sw/source/filter/ww8/ww8toolbar.hxx 
b/sw/source/filter/ww8/ww8toolbar.hxx
index aeef83e63ca5..0e5f63e28a48 100644
--- a/sw/source/filter/ww8/ww8toolbar.hxx
+++ b/sw/source/filter/ww8/ww8toolbar.hxx
@@ -154,15 +154,15 @@ public:
 
 class MCD : public TBBase
 {
-    sal_Int8 reserved1; //  A signed integer that MUST be 0x56.
-    sal_uInt8 reserved2; // MUST be 0.
-    sal_uInt16 ibst; // Unsigned integer that specifies the name of the macro. 
Macro name is specified by MacroName.xstz of the MacroName entry in the 
MacroNames such that MacroName.ibst equals ibst. MacroNames MUST contain such 
an entry.
-    sal_uInt16 ibstName; // An unsigned integer that specifies the index into 
the Command String Table (TcgSttbf.sttbf) where the macro's name and arguments 
are specified.
-    sal_uInt16 reserved3; // An unsigned integer that MUST be 0xFFFF.
-    sal_uInt32 reserved4; //MUST be ignored.
-    sal_uInt32 reserved5; //MUST be 0.
-    sal_uInt32 reserved6; //MUST be ignored.
-    sal_uInt32 reserved7; //MUST be ignored
+    sal_Int8 m_reserved1; //  A signed integer that MUST be 0x56.
+    sal_uInt8 m_reserved2; // MUST be 0.
+    sal_uInt16 m_ibst; // Unsigned integer that specifies the name of the 
macro. Macro name is specified by MacroName.xstz of the MacroName entry in the 
MacroNames such that MacroName.ibst equals ibst. MacroNames MUST contain such 
an entry.
+    sal_uInt16 m_ibstName; // An unsigned integer that specifies the index 
into the Command String Table (TcgSttbf.sttbf) where the macro's name and 
arguments are specified.
+    sal_uInt16 m_reserved3; // An unsigned integer that MUST be 0xFFFF.
+    sal_uInt32 m_reserved4; //MUST be ignored.
+    sal_uInt32 m_reserved5; //MUST be 0.
+    sal_uInt32 m_reserved6; //MUST be ignored.
+    sal_uInt32 m_reserved7; //MUST be ignored
 
 public:
     MCD();
@@ -208,12 +208,12 @@ public:
 
 class Kme : public TBBase
 {
-    sal_Int16 reserved1; //MUST be zero.
-    sal_Int16 reserved2; //MUST be zero.
-    sal_uInt16 kcm1; //A Kcm that specifies the primary shortcut key.
-    sal_uInt16 kcm2; //A Kcm that specifies the secondary shortcut key, or 
0x00FF if there is no secondary shortcut key.
-    sal_uInt16 kt; //A Kt that specifies the type of action to be taken when 
the key combination is pressed.
-    sal_uInt32 param; //The meaning of this field depends on the value of kt
+    sal_Int16 m_reserved1; //MUST be zero.
+    sal_Int16 m_reserved2; //MUST be zero.
+    sal_uInt16 m_kcm1; //A Kcm that specifies the primary shortcut key.
+    sal_uInt16 m_kcm2; //A Kcm that specifies the secondary shortcut key, or 
0x00FF if there is no secondary shortcut key.
+    sal_uInt16 m_kt; //A Kt that specifies the type of action to be taken when 
the key combination is pressed.
+    sal_uInt32 m_param; //The meaning of this field depends on the value of kt
 
     Kme(const Kme&) = delete;
     Kme& operator = ( const Kme&) = delete;
@@ -286,8 +286,8 @@ public:
 
 class MacroName : public TBBase
 {
-    sal_uInt16 ibst; //An unsigned integer that specifies the index of the 
current entry in the macro name table. MUST NOT be the same as the index of any 
other entry.
-    Xstz xstz;
+    sal_uInt16 m_ibst; //An unsigned integer that specifies the index of the 
current entry in the macro name table. MUST NOT be the same as the index of any 
other entry.
+    Xstz m_xstz;
     MacroName(const MacroName&) = delete;
     MacroName& operator = ( const MacroName&) = delete;
 
@@ -298,8 +298,8 @@ public:
 
 class MacroNames : public Tcg255SubStruct
 {
-    sal_uInt16 iMac; //An unsigned integer that specifies the number of 
MacroName structures in rgNames.
-    std::unique_ptr<MacroName[]> rgNames;
+    sal_uInt16 m_iMac; //An unsigned integer that specifies the number of 
MacroName structures in rgNames.
+    std::unique_ptr<MacroName[]> m_rgNames;
 
     MacroNames(const MacroNames&) = delete;
     MacroNames& operator = ( const MacroNames&) = delete;

Reply via email to