summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-19 10:37:58 +0200
committerNoel Grandin <noel@peralex.com>2015-10-19 13:08:29 +0200
commit367105e0248c7b80b60b2554d04f5f248b4259b3 (patch)
tree81b5406455f69b6c5587e7624967273ec36137e9 /sc/source/ui/view
parent6716ceec1c5b1a2ece26f91741253b2673e6e9e2 (diff)
cleanup some local var declarations
found with git grep -nP '(\w+)\s+=\s+\g1\(' | lots-of-hand-filtering Change-Id: I598b0cfa6607823eaef09d95e610e05145c727f7
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/gridwin.cxx6
-rw-r--r--sc/source/ui/view/output2.cxx14
2 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 32b69d08fbe8..676cb0653b57 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5381,7 +5381,7 @@ bool ScGridWindow::GetEditUrl( const Point& rPos,
MapMode aEditMode = pViewData->GetLogicMode(eWhich); // without draw scaleing
Rectangle aLogicEdit = PixelToLogic( aEditRect, aEditMode );
long nThisColLogic = aLogicEdit.Right() - aLogicEdit.Left() + 1;
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (aCell.meType == CELLTYPE_FORMULA)
{
long nSizeX = 0;
@@ -5484,7 +5484,7 @@ bool ScGridWindow::IsSpellErrorAtPos( const Point& rPos, SCCOL nCol1, SCROW nRow
std::shared_ptr<ScFieldEditEngine> pEngine = createEditEngine(pDocSh, *pPattern);
- Size aPaperSize = Size(1000000, 1000000);
+ Size aPaperSize(1000000, 1000000);
pEngine->SetPaperSize(aPaperSize);
if (aCell.meType == CELLTYPE_EDIT)
@@ -6212,7 +6212,7 @@ void ScGridWindow::UpdateAutoFillOverlay()
sal_Int32 nScale = GetDPIScaleFactor();
// Size should be even
- Size aFillHandleSize = Size(6 * nScale, 6 * nScale);
+ Size aFillHandleSize(6 * nScale, 6 * nScale);
Point aFillPos = pViewData->GetScrPos( nX, nY, eWhich, true );
long nSizeXPix;
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index c2690f9bb8ae..f3c878a16da0 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2803,7 +2803,7 @@ void ScOutputData::DrawEditStandard(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.mbBreak)
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3298,7 +3298,7 @@ void ScOutputData::DrawEditBottomTop(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.mbBreak)
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3558,7 +3558,7 @@ void ScOutputData::DrawEditTopBottom(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (rParam.hasLineBreak())
{
// call GetOutputArea with nNeeded=0, to get only the cell width
@@ -3825,7 +3825,7 @@ void ScOutputData::DrawEditStacked(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
// call GetOutputArea with nNeeded=0, to get only the cell width
//! handle nArrY == 0
@@ -4179,7 +4179,7 @@ void ScOutputData::DrawEditAsianVertical(DrawEditParam& rParam)
// Initial page size - large for normal text, cell size for automatic line breaks
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
// call GetOutputArea with nNeeded=0, to get only the cell width
//! handle nArrY == 0
@@ -4864,7 +4864,7 @@ void ScOutputData::DrawRotated(bool bPixelToLogic)
}
}
- Size aPaperSize = Size( 1000000, 1000000 );
+ Size aPaperSize( 1000000, 1000000 );
if (eOrient==SVX_ORIENTATION_STACKED)
aPaperSize.Width() = nOutWidth; // to center
else if (bBreak)
@@ -5000,7 +5000,7 @@ void ScOutputData::DrawRotated(bool bPixelToLogic)
if (!bHidden)
{
bool bClip = false;
- Size aClipSize = Size( nScrX+nScrW-nStartX, nScrY+nScrH-nStartY );
+ Size aClipSize( nScrX+nScrW-nStartX, nScrY+nScrH-nStartY );
// go on writing