Kaydet (Commit) cf3e8cf9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: variables set but not used

Can bypass even more lines for OS X, Android and iOS.

Change-Id: I6949ffa0cd21281ba169a813999da4b52e88691e
üst 8a5993ae
...@@ -1193,6 +1193,9 @@ void ViewShell::VisPortChgd( const SwRect &rRect) ...@@ -1193,6 +1193,9 @@ void ViewShell::VisPortChgd( const SwRect &rRect)
sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect ) sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRect )
{ {
#if !defined(MACOSX) && !defined(ANDROID) && !defined(IOS)
// #i98766# - disable smooth scrolling for Mac
const sal_uLong nColCnt = mpOut->GetColorCount(); const sal_uLong nColCnt = mpOut->GetColorCount();
long lMult = 1, lMax = LONG_MAX; long lMult = 1, lMax = LONG_MAX;
if ( nColCnt == 65536 ) if ( nColCnt == 65536 )
...@@ -1211,9 +1214,6 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe ...@@ -1211,9 +1214,6 @@ sal_Bool ViewShell::SmoothScroll( long lXDiff, long lYDiff, const Rectangle *pRe
lMult = 12; lMult = 12;
} }
#if !defined(MACOSX) && !defined(ANDROID) && !defined(IOS)
// #i98766# - disable smooth scrolling for Mac
// #i75172# isolated static conditions // #i75172# isolated static conditions
const bool bOnlyYScroll(!lXDiff && Abs(lYDiff) != 0 && Abs(lYDiff) < lMax); const bool bOnlyYScroll(!lXDiff && Abs(lYDiff) != 0 && Abs(lYDiff) < lMax);
const bool bAllowedWithChildWindows(GetWin()->GetWindowClipRegionPixel(WINDOW_GETCLIPREGION_NOCHILDREN|WINDOW_GETCLIPREGION_NULL).IsNull()); const bool bAllowedWithChildWindows(GetWin()->GetWindowClipRegionPixel(WINDOW_GETCLIPREGION_NOCHILDREN|WINDOW_GETCLIPREGION_NULL).IsNull());
......
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