Kaydet (Commit) 34633212 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Scope reduction.

üst a3fccd27
......@@ -750,8 +750,9 @@ void ScDPSource::FilterCacheTableByPageDimensions()
void ScDPSource::CreateRes_Impl()
{
if ( !pResData )
{
if (pResData)
return;
sal_uInt16 nDataOrient = GetDataLayoutOrientation();
if ( nDataDimCount > 1 && ( nDataOrient != sheet::DataPilotFieldOrientation_COLUMN &&
nDataOrient != sheet::DataPilotFieldOrientation_ROW ) )
......@@ -779,7 +780,7 @@ void ScDPSource::CreateRes_Impl()
// LateInit (initialize only those rows/children that are used) can be used unless
// any data dimension needs reference values from column/row dimensions
sal_Bool bLateInit = sal_True;
bool bLateInit = true;
// Go through all data dimensions (i.e. fields) and build their meta data
// so that they can be passed on to ScDPResultData instance later.
......@@ -908,7 +909,7 @@ void ScDPSource::CreateRes_Impl()
// resulting table is too big -> abort before calculating
// (this relies on late init, so no members are allocated in InitFrom above)
bResultOverflow = sal_True;
bResultOverflow = true;
}
else
{
......@@ -964,7 +965,6 @@ void ScDPSource::CreateRes_Impl()
// ----------------------------------------------------------------
}
}
}
......
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