diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 09:48:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-18 14:27:27 +0200 |
commit | 4c68cf2636573c97e69ae73cb9a0b65019efd26a (patch) | |
tree | 979cad8651e0f0fded3ea5d4ead2658b084a7c2d /svx | |
parent | bfd6233cc83aa368d4869ae5901219238fb02e13 (diff) |
convert SdrLayer::nType to bool
since it is being used as a bool. Also rename it to something more
readable
Change-Id: I89acc47251770c94fa321b742b0fb9327024055f
Reviewed-on: https://gerrit.libreoffice.org/61909
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
Tested-by: Jenkins
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdlayer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdlayer.cxx b/svx/source/svdraw/svdlayer.cxx index fef4c22927b3..b941c72cdc8b 100644 --- a/svx/source/svdraw/svdlayer.cxx +++ b/svx/source/svdraw/svdlayer.cxx @@ -68,7 +68,7 @@ void SdrLayerIDSet::PutValue( const css::uno::Any & rAny ) } SdrLayer::SdrLayer(SdrLayerID nNewID, const OUString& rNewName) : - maName(rNewName), pModel(nullptr), nType(0), nID(nNewID) + maName(rNewName), pModel(nullptr), mbUserDefinedLayer(true), nID(nNewID) { // ODF default values mbVisibleODF = true; @@ -78,7 +78,7 @@ SdrLayer::SdrLayer(SdrLayerID nNewID, const OUString& rNewName) : void SdrLayer::SetStandardLayer() { - nType=sal_uInt16(true); + mbUserDefinedLayer=false; maName = SvxResId(STR_StandardLayerName); if (pModel!=nullptr) { SdrHint aHint(SdrHintKind::LayerChange); @@ -93,7 +93,7 @@ void SdrLayer::SetName(const OUString& rNewName) return; maName = rNewName; - nType = 0; // user defined + mbUserDefinedLayer = true; if (pModel) { @@ -106,7 +106,7 @@ void SdrLayer::SetName(const OUString& rNewName) bool SdrLayer::operator==(const SdrLayer& rCmpLayer) const { return (nID == rCmpLayer.nID - && nType == rCmpLayer.nType + && mbUserDefinedLayer == rCmpLayer.mbUserDefinedLayer && maName == rCmpLayer.maName); } |