diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-12-27 02:04:42 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-12-26 19:03:24 +0000 |
commit | 422bedb783b9484a7a4b0de5b7ee4634cf6c972c (patch) | |
tree | 86cffac85aa4c7f1d2966c62f51b03d28c6546a5 /svx | |
parent | ca8560e006b014886bd6210d4e5b236cf7badcd0 (diff) |
svx: change instances of maName to more descriptive names
maName is just not descriptive enough and hard to search the source for.
Also in this patch:
- tracked down what ASE, GPL and SOC stand for and added a comment
- found instances of aName, local variables and changed these to
aPaletteName
Change-Id: I4c7eee31b604a8ef2ebef5fd1daa81e193dd7295
Reviewed-on: https://gerrit.libreoffice.org/20958
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/styles/ColorSets.cxx | 4 | ||||
-rw-r--r-- | svx/source/tbxctrls/Palette.cxx | 28 | ||||
-rw-r--r-- | svx/source/xoutdev/XPropertyEntry.cxx | 6 |
3 files changed, 19 insertions, 19 deletions
diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index 819790a5cf22..504ffa027fa1 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -13,8 +13,8 @@ namespace svx { -ColorSet::ColorSet(OUString const & aName) - : maName(aName) +ColorSet::ColorSet(OUString const & aColorSetName) + : maColorSetName(aColorSetName) , maColors(12) {} diff --git a/svx/source/tbxctrls/Palette.cxx b/svx/source/tbxctrls/Palette.cxx index 4fc1f3b7a953..d5e2dd9b9505 100644 --- a/svx/source/tbxctrls/Palette.cxx +++ b/svx/source/tbxctrls/Palette.cxx @@ -32,7 +32,7 @@ PaletteASE::~PaletteASE() PaletteASE::PaletteASE( const OUString &rFPath, const OUString &rFName ) : mbValidPalette( false ), maFPath ( rFPath ), - maName ( rFName ) + maASEPaletteName ( rFName ) { LoadPalette(); } @@ -50,7 +50,7 @@ void PaletteASE::LoadColorSet( SvxColorValueSet& rColorSet ) const OUString& PaletteASE::GetName() { - return maName; + return maASEPaletteName; } bool PaletteASE::IsValid() @@ -102,19 +102,19 @@ void PaletteASE::LoadPalette() aFile.ReadUInt16(nChunkSize); aFile.ReadUInt16(nChars); - OUString aName(""); + OUString aPaletteName(""); if (nChars > 1) - aName = read_uInt16s_ToOUString(aFile, nChars); + aPaletteName = read_uInt16s_ToOUString(aFile, nChars); else aFile.SeekRel(2); if (nChunkType == 0xC0010000) { // Got a start chunk, so set palette name - maName = aName; + maASEPaletteName = aPaletteName; // Is there color data? (shouldn't happen in a start block, but check anyway) if (nChunkSize > ((nChars * 2) + 2)) - aName.clear(); + aPaletteName.clear(); else continue; } @@ -158,7 +158,7 @@ void PaletteASE::LoadPalette() // Ignore color type aFile.SeekRel(2); - maColors.push_back(std::make_pair(Color(r * 255, g * 255, b * 255), aName)); + maColors.push_back(std::make_pair(Color(r * 255, g * 255, b * 255), aPaletteName)); } mbValidPalette = true; @@ -183,7 +183,7 @@ PaletteGPL::~PaletteGPL() const OUString& PaletteGPL::GetName() { - return maName; + return maGPLPaletteName; } void PaletteGPL::LoadColorSet( SvxColorValueSet& rColorSet ) @@ -207,21 +207,21 @@ bool PaletteGPL::IsValid() bool PaletteGPL::ReadPaletteHeader(SvFileStream& rFileStream) { OString aLine; - OString aName; + OString aPaletteName; rFileStream.ReadLine(aLine); if( !aLine.startsWith("GIMP Palette") ) return false; rFileStream.ReadLine(aLine); - if( aLine.startsWith("Name: ", &aName) ) + if( aLine.startsWith("Name: ", &aPaletteName) ) { - maName = OStringToOUString(aName, RTL_TEXTENCODING_ASCII_US); + maGPLPaletteName = OStringToOUString(aPaletteName, RTL_TEXTENCODING_ASCII_US); rFileStream.ReadLine(aLine); if( aLine.startsWith("Columns: ")) rFileStream.ReadLine(aLine); // we can ignore this } else { - maName = maFName; + maGPLPaletteName = maFName; } return true; } @@ -314,7 +314,7 @@ OString lcl_getToken(const OString& rStr, sal_Int32& index) PaletteSOC::PaletteSOC( const OUString &rFPath, const OUString &rFName ) : mbLoadedPalette( false ), maFPath( rFPath ), - maName( rFName ) + maSOCPaletteName( rFName ) { } @@ -324,7 +324,7 @@ PaletteSOC::~PaletteSOC() const OUString& PaletteSOC::GetName() { - return maName; + return maSOCPaletteName; } void PaletteSOC::LoadColorSet( SvxColorValueSet& rColorSet ) diff --git a/svx/source/xoutdev/XPropertyEntry.cxx b/svx/source/xoutdev/XPropertyEntry.cxx index 62ae82dd9e37..4c29e4f3fb8a 100644 --- a/svx/source/xoutdev/XPropertyEntry.cxx +++ b/svx/source/xoutdev/XPropertyEntry.cxx @@ -19,14 +19,14 @@ #include <svx/XPropertyEntry.hxx> -XPropertyEntry::XPropertyEntry(const OUString& rName) -: maName(rName), +XPropertyEntry::XPropertyEntry(const OUString& rPropEntryName) +: maPropEntryName(rPropEntryName), maUiBitmap() { } XPropertyEntry::XPropertyEntry(const XPropertyEntry& rOther) -: maName(rOther.maName), +: maPropEntryName(rOther.maPropEntryName), maUiBitmap(rOther.maUiBitmap) { } |