diff -Naur a/canvas/source/cairo/cairo_spritecanvashelper.cxx b/canvas/source/cairo/cairo_spritecanvashelper.cxx
a
|
b
|
|
402 | 402 | ::basegfx::computeSetDifference( aUncoveredAreas, |
403 | 403 | rUpdateArea.maTotalBounds, |
404 | 404 | ::basegfx::B2DRange( rDestRect ) ); |
| 405 | SurfaceSharedPtr surface(mpOwningSpriteCanvas->getBufferSurface()); |
405 | 406 | ::std::for_each( aUncoveredAreas.begin(), |
406 | 407 | aUncoveredAreas.end(), |
407 | 408 | ::boost::bind( &repaintBackground, |
408 | 409 | boost::cref(pCompositingCairo), |
409 | | boost::cref(mpOwningSpriteCanvas->getBufferSurface()), |
| 410 | boost::cref(surface), |
410 | 411 | _1 ) ); |
411 | 412 | |
412 | 413 | cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() ); |
diff -Naur a/canvas/source/vcl/spritecanvashelper.cxx b/canvas/source/vcl/spritecanvashelper.cxx
a
|
b
|
|
573 | 573 | |
574 | 574 | // repaint all affected sprites on top of background into |
575 | 575 | // VDev. |
| 576 | ::basegfx::B2DPoint outPos( ::vcl::unotools::b2DPointFromPoint(aOutputPosition) ); |
576 | 577 | ::std::for_each( rSortedUpdateSprites.begin(), |
577 | 578 | rSortedUpdateSprites.end(), |
578 | 579 | ::boost::bind( &spriteRedrawStub2, |
579 | 580 | ::boost::ref( maVDev.get() ), |
580 | | ::boost::cref( |
581 | | ::vcl::unotools::b2DPointFromPoint(aOutputPosition)), |
| 581 | ::boost::cref( outPos ), |
582 | 582 | _1 ) ); |
583 | 583 | |
584 | 584 | // flush to screen |
diff -Naur a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
a
|
b
|
|
1392 | 1392 | setEditable( xMeta.is() && !xMeta->isReadOnly() && (isAlterAllowed() || isDropAllowed() || isAddAllowed()) ); |
1393 | 1393 | if(!isEditable()) |
1394 | 1394 | { |
1395 | | ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( sal_True ))); |
| 1395 | sal_Bool t( sal_True ); |
| 1396 | ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( t ))); |
1396 | 1397 | } |
1397 | 1398 | m_bNew = false; |
1398 | 1399 | // be notified when the table is in disposing |
diff -Naur a/oox/source/drawingml/table/tablecell.cxx b/oox/source/drawingml/table/tablecell.cxx
a
|
b
|
|
117 | 117 | if (rTableStylePart.getTextColor().isUsed()) |
118 | 118 | aTextCharProps.maCharColor = rTableStylePart.getTextColor(); |
119 | 119 | if( rTableStylePart.getTextBoldStyle().is_initialized() ) |
120 | | aTextCharProps.moBold = rTableStylePart.getTextBoldStyle(); |
| 120 | aTextCharProps.moBold = *rTableStylePart.getTextBoldStyle(); |
121 | 121 | if( rTableStylePart.getTextItalicStyle().is_initialized() ) |
122 | | aTextCharProps.moItalic = rTableStylePart.getTextItalicStyle(); |
| 122 | aTextCharProps.moItalic = *rTableStylePart.getTextItalicStyle(); |
123 | 123 | } |
124 | 124 | |
125 | 125 | void applyTableCellProperties( const Reference < ::com::sun::star::table::XCell >& rxCell, const TableCell& rTableCell ) |
diff -Naur a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
a
|
b
|
|
1612 | 1612 | m_pImpl->m_pObjectContainer->SwitchPersistence(m_pImpl->m_xStorage); |
1613 | 1613 | } |
1614 | 1614 | // notify our container listeners |
| 1615 | OWeakObject *weakObjectThis = static_cast<OWeakObject*>(this); |
1615 | 1616 | m_pImpl->m_aStorageChangeListeners.forEach<document::XStorageChangeListener>( |
1616 | | ::boost::bind(&document::XStorageChangeListener::notifyStorageChange,_1,boost::cref(static_cast<OWeakObject*>(this)),boost::cref(_xStorage))); |
| 1617 | ::boost::bind(&document::XStorageChangeListener::notifyStorageChange,_1,boost::cref(weakObjectThis),boost::cref(_xStorage))); |
1617 | 1618 | } |
1618 | 1619 | |
1619 | 1620 | uno::Reference< embed::XStorage > SAL_CALL OReportDefinition::getDocumentStorage( ) throw (io::IOException, uno::Exception, uno::RuntimeException, std::exception) |
diff -Naur a/slideshow/source/engine/activities/activitybase.hxx b/slideshow/source/engine/activities/activitybase.hxx
a
|
b
|
|
111 | 111 | ShapeAttributeLayerSharedPtr getShapeAttributeLayer() const |
112 | 112 | { return mpAttributeLayer; } |
113 | 113 | |
114 | | bool isRepeatCountValid() const { return maRepeats; } |
| 114 | bool isRepeatCountValid() const { return bool(maRepeats); } |
115 | 115 | double getRepeatCount() const { return *maRepeats; } |
116 | 116 | bool isAutoReverse() const { return mbAutoReverse; } |
117 | 117 | |
diff -Naur a/slideshow/source/engine/rehearsetimingsactivity.cxx b/slideshow/source/engine/rehearsetimingsactivity.cxx
a
|
b
|
|
400 | 400 | { |
401 | 401 | // new sprite pos, transformation might have changed: |
402 | 402 | maSpriteRectangle = calcSpriteRectangle( maViews.front().first ); |
| 403 | ::basegfx::B2DPoint rectMin( maSpriteRectangle.getMinimum() ); |
403 | 404 | |
404 | 405 | // reposition sprites |
405 | 406 | for_each_sprite( boost::bind( &cppcanvas::Sprite::move, |
406 | 407 | _1, |
407 | | boost::cref(maSpriteRectangle.getMinimum())) ); |
| 408 | boost::cref( rectMin )) ); |
408 | 409 | |
409 | 410 | // sprites changed, need screen update |
410 | 411 | mrScreenUpdater.notifyUpdate(); |
diff -Naur a/slideshow/source/engine/shapes/appletshape.cxx b/slideshow/source/engine/shapes/appletshape.cxx
a
|
b
|
|
148 | 148 | void AppletShape::implViewsChanged() |
149 | 149 | { |
150 | 150 | // resize all ViewShapes |
| 151 | ::basegfx::B2DRectangle bounds( AppletShape::getBounds() ); |
151 | 152 | ::std::for_each( maViewAppletShapes.begin(), |
152 | 153 | maViewAppletShapes.end(), |
153 | 154 | ::boost::bind( |
154 | 155 | &ViewAppletShape::resize, |
155 | 156 | _1, |
156 | | ::boost::cref( AppletShape::getBounds())) ); |
| 157 | ::boost::cref( bounds )) ); |
157 | 158 | } |
158 | 159 | |
159 | 160 | |
… |
… |
|
252 | 253 | |
253 | 254 | bool AppletShape::implStartIntrinsicAnimation() |
254 | 255 | { |
| 256 | ::basegfx::B2DRectangle bounds( getBounds() ); |
255 | 257 | ::std::for_each( maViewAppletShapes.begin(), |
256 | 258 | maViewAppletShapes.end(), |
257 | 259 | ::boost::bind( &ViewAppletShape::startApplet, |
258 | 260 | _1, |
259 | | ::boost::cref( getBounds() ))); |
| 261 | ::boost::cref( bounds ))); |
260 | 262 | mbIsPlaying = true; |
261 | 263 | |
262 | 264 | return true; |
diff -Naur a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
a
|
b
|
|
168 | 168 | } |
169 | 169 | |
170 | 170 | // redraw all view shapes, by calling their update() method |
| 171 | ViewShape::RenderArgs renderArgs( getViewRenderArgs() ); |
171 | 172 | if( ::std::count_if( maViewShapes.begin(), |
172 | 173 | maViewShapes.end(), |
173 | 174 | ::boost::bind<bool>( |
… |
… |
|
178 | 179 | // the extra mem_fn. WTF. |
179 | 180 | _1, |
180 | 181 | ::boost::cref( mpCurrMtf ), |
181 | | ::boost::cref( |
182 | | getViewRenderArgs() ), |
| 182 | ::boost::cref( renderArgs ), |
183 | 183 | nUpdateFlags, |
184 | 184 | isVisible() ) ) |
185 | 185 | != static_cast<ViewShapeVector::difference_type>(maViewShapes.size()) ) |
diff -Naur a/slideshow/source/engine/shapes/mediashape.cxx b/slideshow/source/engine/shapes/mediashape.cxx
a
|
b
|
|
125 | 125 | void MediaShape::implViewsChanged() |
126 | 126 | { |
127 | 127 | // resize all ViewShapes |
| 128 | ::basegfx::B2DRectangle bounds( getBounds() ); |
128 | 129 | ::std::for_each( maViewMediaShapes.begin(), |
129 | 130 | maViewMediaShapes.end(), |
130 | 131 | ::boost::bind( |
131 | 132 | &ViewMediaShape::resize, |
132 | 133 | _1, |
133 | | ::boost::cref( getBounds())) ); |
| 134 | ::boost::cref( bounds )) ); |
134 | 135 | } |
135 | 136 | |
136 | 137 | |
diff -Naur a/slideshow/source/engine/unoviewcontainer.cxx b/slideshow/source/engine/unoviewcontainer.cxx
a
|
b
|
|
45 | 45 | const UnoViewVector::iterator aEnd( maViews.end() ); |
46 | 46 | |
47 | 47 | // already added? |
| 48 | uno::Reference<presentation::XSlideShowView> xView (rView->getUnoView()); |
48 | 49 | if( ::std::find_if( maViews.begin(), |
49 | 50 | aEnd, |
50 | 51 | ::boost::bind( |
51 | 52 | ::std::equal_to< uno::Reference< presentation::XSlideShowView > >(), |
52 | | ::boost::cref( rView->getUnoView() ), |
| 53 | ::boost::cref( xView ), |
53 | 54 | ::boost::bind( |
54 | 55 | &UnoView::getUnoView, |
55 | 56 | _1 ) ) ) != aEnd ) |