diff options
author | Andre Fischer <Andre.W.Fischer <Andre Fischer<Andre.W.Fischer@Sun.COM> | 2010-03-23 13:35:01 +0100 |
---|---|---|
committer | Andre Fischer <Andre.W.Fischer <Andre Fischer<Andre.W.Fischer@Sun.COM> | 2010-03-23 13:35:01 +0100 |
commit | 1e89c38545f74a2d18564f9df6ec1ff4d5ef9390 (patch) | |
tree | 0e33f746f88de160f5c7c10b55a9e63bef838a11 /sd | |
parent | f38cf1fdb8e23c4031b198214a29510046c05ecc (diff) |
renaissance1: #i107215# Fixed minor compilation problems.
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsLayouter.cxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx index edd3e37dae20..137d2fe1db81 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx @@ -104,6 +104,8 @@ TYPEINIT1(SlideSorterViewShell, ViewShell); FrameView* pFrameViewArgument, const bool bIsCenterPane) { + (void)bIsCenterPane; + ::boost::shared_ptr<SlideSorterViewShell> pViewShell; try { diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx index 612db3a06791..5b6f43e3bf77 100644 --- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx +++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx @@ -1015,6 +1015,8 @@ Size Layouter::Implementation::GetTargetSize ( const bool bCalculateWidth, const bool bCalculateHeight) const { + (void)rPreviewModelSize; + if (mnColumnCount<=0 || mnRowCount<=0) return maPreferredSize; if ( ! (bCalculateWidth || bCalculateHeight)) @@ -1023,9 +1025,6 @@ Size Layouter::Implementation::GetTargetSize ( return maPreferredSize; } - const double nPreviewAspectRatio ( - double(rPreviewModelSize.Width())/double(rPreviewModelSize.Height())); - // Calculate the width of each page object. Size aTargetSize (0,0); if (bCalculateWidth) |