Kaydet (Commit) b53ff286 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Fix various warnings

Change-Id: I78aa55539c2a3e522736bb178ba7d445300bf1f0
üst e211e4ed
......@@ -22,7 +22,7 @@
using namespace css::uno;
using namespace css::sheet;
ScItemValue::ScItemValue(OUString aName, SCCOL nColumn, sal_uInt16 nFunctionMask) :
ScItemValue::ScItemValue(OUString const & aName, SCCOL nColumn, sal_uInt16 nFunctionMask) :
maName(aName),
maFunctionData(nColumn, nFunctionMask),
mpOriginalItemValue(this)
......@@ -40,22 +40,7 @@ ScItemValue::~ScItemValue()
namespace
{
OUString lclGetNameForNamedRange(ScRange aRange, ScDocument* pDocument)
{
OUString aName;
ScRangeName* pRangeName = pDocument->GetRangeName();
if (pRangeName == NULL)
return aName;
const ScRangeData* pData = pRangeName->findByRange(aRange);
if (pData == NULL)
return aName;
return pData->GetName();
}
ScRange lclGetRangeForNamedRange(OUString aName, ScDocument* pDocument)
ScRange lclGetRangeForNamedRange(OUString const & aName, ScDocument* pDocument)
{
ScRange aInvalidRange(ScAddress::INITIALIZE_INVALID);
ScRangeName* pRangeName = pDocument->GetRangeName();
......
......@@ -83,7 +83,7 @@ void ScPivotLayoutTreeList::FillFields(ScPivotFieldVector& rFieldVector)
{
ScPivotField& rField = *it;
ScItemValue* pItemValue = mpParent->GetItem(rField.nCol);
InsertEntry(pItemValue->maName, NULL, sal_False, TREELIST_APPEND, pItemValue);
InsertEntry(pItemValue->maName, NULL, false, TREELIST_APPEND, pItemValue);
}
}
......@@ -105,7 +105,7 @@ void ScPivotLayoutTreeList::InsertEntryForSourceTarget(SvTreeListEntry* pSource,
void ScPivotLayoutTreeList::InsertEntryForItem(ScItemValue* pItemValue, sal_uLong nPosition)
{
OUString rName = pItemValue->maName;
InsertEntry(rName, NULL, sal_False, nPosition, pItemValue);
InsertEntry(rName, NULL, false, nPosition, pItemValue);
}
void ScPivotLayoutTreeList::KeyInput(const KeyEvent& rKeyEvent)
......
......@@ -156,7 +156,7 @@ void ScPivotLayoutTreeListData::InsertEntryForSourceTarget(SvTreeListEntry* pSou
OUString rText = GetEntryText(pSource);
GetModel()->Remove(pSource);
sal_uLong nPosition = (pTarget == NULL) ? TREELIST_APPEND : GetModel()->GetAbsPos(pTarget) + 1;
InsertEntry(rText, NULL, sal_False, nPosition, pItemValue);
InsertEntry(rText, NULL, false, nPosition, pItemValue);
}
else
{
......@@ -184,7 +184,7 @@ void ScPivotLayoutTreeListData::InsertEntryForItem(ScItemValue* pItemValue, sal_
pDataItemValue->maName,
rFunctionData.mnDupCount);
InsertEntry(sDataName, NULL, sal_False, nPosition, pDataItemValue);
InsertEntry(sDataName, NULL, false, nPosition, pDataItemValue);
}
void ScPivotLayoutTreeListData::KeyInput(const KeyEvent& rKeyEvent)
......
......@@ -33,7 +33,7 @@ public:
ScPivotFuncData maFunctionData;
ScItemValue* mpOriginalItemValue;
ScItemValue(OUString aName, SCCOL nColumn, sal_uInt16 nFunctionMask);
ScItemValue(OUString const & aName, SCCOL nColumn, sal_uInt16 nFunctionMask);
ScItemValue(ScItemValue* pInputItemValue);
virtual ~ScItemValue();
......
......@@ -33,8 +33,6 @@ public:
COLUMN_LIST,
DATA_LIST
};
private:
bool mbIsInternalDrag;
protected:
SvPivotTreeListType meType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment