[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Aug 31 11:25:30 PDT 2012
sc/source/filter/xml/xmldpimp.cxx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 9b721623b69b1c2a54dc1dba04b9c92e5e4fd13e
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Fri Aug 31 14:25:05 2012 -0400
Bool and string cleanup, as usual.
Change-Id: Id287047d54c2c75647486cc3b07152ddbe295534
diff --git a/sc/source/filter/xml/xmldpimp.cxx b/sc/source/filter/xml/xmldpimp.cxx
index 8c44968..3bf88f6 100644
--- a/sc/source/filter/xml/xmldpimp.cxx
+++ b/sc/source/filter/xml/xmldpimp.cxx
@@ -935,8 +935,8 @@ ScXMLDataPilotFieldContext::ScXMLDataPilotFieldContext( ScXMLImport& rImport,
bAutoEnd(false),
mbHasHiddenMember(false)
{
- sal_Bool bHasName(false);
- sal_Bool bDataLayout(false);
+ bool bHasName = false;
+ bool bDataLayout = false;
OUString aDisplayName;
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
const SvXMLTokenMap& rAttrTokenMap = GetScImport().GetDataPilotFieldAttrTokenMap();
@@ -953,7 +953,7 @@ ScXMLDataPilotFieldContext::ScXMLDataPilotFieldContext( ScXMLImport& rImport,
case XML_TOK_DATA_PILOT_FIELD_ATTR_SOURCE_FIELD_NAME :
{
sName = sValue;
- bHasName = sal_True;
+ bHasName = true;
}
break;
case XML_TOK_DATA_PILOT_FIELD_ATTR_DISPLAY_NAME:
@@ -980,7 +980,7 @@ ScXMLDataPilotFieldContext::ScXMLDataPilotFieldContext( ScXMLImport& rImport,
case XML_TOK_DATA_PILOT_FIELD_ATTR_SELECTED_PAGE :
{
sSelectedPage = sValue;
- bSelectedPage = sal_True;
+ bSelectedPage = true;
}
break;
case XML_TOK_DATA_PILOT_FIELD_ATTR_USED_HIERARCHY :
@@ -992,7 +992,7 @@ ScXMLDataPilotFieldContext::ScXMLDataPilotFieldContext( ScXMLImport& rImport,
}
if (bHasName)
{
- pDim = new ScDPSaveDimension(String(sName), bDataLayout);
+ pDim = new ScDPSaveDimension(sName, bDataLayout);
if (!aDisplayName.isEmpty())
pDim->SetLayoutName(aDisplayName);
}
More information about the Libreoffice-commits
mailing list