diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-04 17:38:11 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-04 20:40:43 +0900 |
commit | d91926de43d2192759029f7124e4e515efc96ba7 (patch) | |
tree | 5a7482b318b9866126b1fc84ab9f8bff3f074d50 /sc/source | |
parent | 7431bc263aa8411eb2934c8aefd2c222d5f83b28 (diff) |
tabview - put locals into anonymous namespace
Change-Id: I8af78740ce3c0533eeb5277f8065f3fd84cb8834
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/tabview.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index fe56acdbef19..e734401f04cd 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -1302,7 +1302,10 @@ void ScTabView::ScrollLines( long nDeltaX, long nDeltaY ) ScrollY(nDeltaY,WhichV(eWhich)); } -static SCROW lcl_LastVisible( ScViewData& rViewData ) +namespace +{ + +SCROW lcl_LastVisible( ScViewData& rViewData ) { // wenn am Dokumentende viele Zeilen ausgeblendet sind (welcher Trottel macht sowas?), // soll dadurch nicht auf breite Zeilenkoepfe geschaltet werden @@ -1317,6 +1320,8 @@ static SCROW lcl_LastVisible( ScViewData& rViewData ) return nVis; } +} // anonymous namespace + void ScTabView::UpdateHeaderWidth( const ScVSplitPos* pWhich, const SCROW* pPosY ) { if ( !pRowBar[SC_SPLIT_BOTTOM] || MAXROW < 10000 ) @@ -1884,7 +1889,10 @@ Point ScTabView::GetMousePosPixel() return aPos; } -static bool lcl_MouseIsOverWin( const Point& rScreenPosPixel, vcl::Window* pWin ) +namespace +{ + +bool lcl_MouseIsOverWin( const Point& rScreenPosPixel, vcl::Window* pWin ) { if (pWin) { @@ -1900,6 +1908,8 @@ static bool lcl_MouseIsOverWin( const Point& rScreenPosPixel, vcl::Window* pWin return false; } +} // anonymous namespace + void ScTabView::SnapSplitPos( Point& rScreenPosPixel ) { bool bOverWin = false; |