diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-17 17:00:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-18 08:23:28 +0200 |
commit | 4dd7c0369d66aa7b30f2b9e547faa5fb2c7cd8dd (patch) | |
tree | b3497428d040c18b167938fcc89f1e034ebafd45 /svtools | |
parent | 7dde426915ebbb7ea2ca3dc661f0a9ac70a26d5c (diff) |
Various Clang 3.1 -Wunsued-variable, -Wconstant-conversion
Change-Id: I0799f22685609201dfb524c373d065b6184ed53c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/textview.cxx | 2 | ||||
-rw-r--r-- | svtools/source/filter/wmf/winwmf.cxx | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index 1b6254109d22..289a844ba593 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -1329,8 +1329,6 @@ TextSelection TextView::ImpMoveCursor( const KeyEvent& rKeyEvent ) { mpImpl->mpTextEngine->CursorMoved( aOldEnd.GetPara() ); - - TextSelection aOldSelection( mpImpl->maSelection ); TextSelection aNewSelection( mpImpl->maSelection ); aNewSelection.GetEnd() = aPaM; if ( bSelect ) diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx index af1512607dc5..abcc09bfda08 100644 --- a/svtools/source/filter/wmf/winwmf.cxx +++ b/svtools/source/filter/wmf/winwmf.cxx @@ -1306,20 +1306,16 @@ sal_Bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pSt break; case W_META_ROUNDRECT: - { - Size aSize( ReadYXExt() ); + ReadYXExt(); // size GetWinExtMax( ReadRectangle(), rPlaceableBound, nMapMode ); - } break; case W_META_ARC: case W_META_PIE: case W_META_CHORD: - { - Point aEnd( ReadYX() ); - Point aStart( ReadYX() ); + ReadYX(); // end + ReadYX(); // start GetWinExtMax( ReadRectangle(), rPlaceableBound, nMapMode ); - } break; case W_META_POLYGON: |