Line 0
Link Here
|
|
|
1 |
--- canvas/source/cairo/cairo_spritecanvashelper.cxx.orig 2015-04-20 19:36:29 UTC |
2 |
+++ canvas/source/cairo/cairo_spritecanvashelper.cxx |
3 |
@@ -402,11 +402,12 @@ namespace cairocanvas |
4 |
::basegfx::computeSetDifference( aUncoveredAreas, |
5 |
rUpdateArea.maTotalBounds, |
6 |
::basegfx::B2DRange( rDestRect ) ); |
7 |
+ SurfaceSharedPtr surface(mpOwningSpriteCanvas->getBufferSurface()); |
8 |
::std::for_each( aUncoveredAreas.begin(), |
9 |
aUncoveredAreas.end(), |
10 |
::boost::bind( &repaintBackground, |
11 |
boost::cref(pCompositingCairo), |
12 |
- boost::cref(mpOwningSpriteCanvas->getBufferSurface()), |
13 |
+ boost::cref(surface), |
14 |
_1 ) ); |
15 |
|
16 |
cairo_rectangle( pWindowCairo.get(), 0, 0, rSize.getX(), rSize.getY() ); |
17 |
--- canvas/source/vcl/spritecanvashelper.cxx.orig 2015-04-20 19:36:29 UTC |
18 |
+++ canvas/source/vcl/spritecanvashelper.cxx |
19 |
@@ -573,12 +573,12 @@ namespace vclcanvas |
20 |
|
21 |
// repaint all affected sprites on top of background into |
22 |
// VDev. |
23 |
+ ::basegfx::B2DPoint outPos( ::vcl::unotools::b2DPointFromPoint(aOutputPosition) ); |
24 |
::std::for_each( rSortedUpdateSprites.begin(), |
25 |
rSortedUpdateSprites.end(), |
26 |
::boost::bind( &spriteRedrawStub2, |
27 |
::boost::ref( maVDev.get() ), |
28 |
- ::boost::cref( |
29 |
- ::vcl::unotools::b2DPointFromPoint(aOutputPosition)), |
30 |
+ ::boost::cref( outPos ), |
31 |
_1 ) ); |
32 |
|
33 |
// flush to screen |
34 |
--- dbaccess/source/ui/tabledesign/TableController.cxx.orig 2015-04-20 19:36:29 UTC |
35 |
+++ dbaccess/source/ui/tabledesign/TableController.cxx |
36 |
@@ -1392,7 +1392,8 @@ void OTableController::assignTable() |
37 |
setEditable( xMeta.is() && !xMeta->isReadOnly() && (isAlterAllowed() || isDropAllowed() || isAddAllowed()) ); |
38 |
if(!isEditable()) |
39 |
{ |
40 |
- ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( sal_True ))); |
41 |
+ sal_Bool t( sal_True ); |
42 |
+ ::std::for_each(m_vRowList.begin(),m_vRowList.end(),boost::bind( &OTableRow::SetReadOnly, _1, boost::cref( t ))); |
43 |
} |
44 |
m_bNew = false; |
45 |
// be notified when the table is in disposing |
46 |
--- oox/source/drawingml/table/tablecell.cxx.orig 2015-04-20 19:36:29 UTC |
47 |
+++ oox/source/drawingml/table/tablecell.cxx |
48 |
@@ -142,9 +142,9 @@ void applyTableStylePart( const ::oox::c |
49 |
if (rTableStylePart.getTextColor().isUsed()) |
50 |
aTextCharProps.maCharColor = rTableStylePart.getTextColor(); |
51 |
if( rTableStylePart.getTextBoldStyle().is_initialized() ) |
52 |
- aTextCharProps.moBold = rTableStylePart.getTextBoldStyle(); |
53 |
+ aTextCharProps.moBold = *rTableStylePart.getTextBoldStyle(); |
54 |
if( rTableStylePart.getTextItalicStyle().is_initialized() ) |
55 |
- aTextCharProps.moItalic = rTableStylePart.getTextItalicStyle(); |
56 |
+ aTextCharProps.moItalic = *rTableStylePart.getTextItalicStyle(); |
57 |
} |
58 |
|
59 |
void applyTableCellProperties( const Reference < ::com::sun::star::table::XCell >& rxCell, const TableCell& rTableCell ) |
60 |
--- reportdesign/source/core/api/ReportDefinition.cxx.orig 2015-04-20 19:36:29 UTC |
61 |
+++ reportdesign/source/core/api/ReportDefinition.cxx |
62 |
@@ -1612,8 +1612,9 @@ void SAL_CALL OReportDefinition::switchT |
63 |
m_pImpl->m_pObjectContainer->SwitchPersistence(m_pImpl->m_xStorage); |
64 |
} |
65 |
// notify our container listeners |
66 |
+ OWeakObject *weakObjectThis = static_cast<OWeakObject*>(this); |
67 |
m_pImpl->m_aStorageChangeListeners.forEach<document::XStorageChangeListener>( |
68 |
- ::boost::bind(&document::XStorageChangeListener::notifyStorageChange,_1,boost::cref(static_cast<OWeakObject*>(this)),boost::cref(_xStorage))); |
69 |
+ ::boost::bind(&document::XStorageChangeListener::notifyStorageChange,_1,boost::cref(weakObjectThis),boost::cref(_xStorage))); |
70 |
} |
71 |
|
72 |
uno::Reference< embed::XStorage > SAL_CALL OReportDefinition::getDocumentStorage( ) throw (io::IOException, uno::Exception, uno::RuntimeException, std::exception) |
73 |
--- slideshow/source/engine/activities/activitybase.hxx.orig 2015-04-20 19:36:29 UTC |
74 |
+++ slideshow/source/engine/activities/activitybase.hxx |
75 |
@@ -111,7 +111,7 @@ protected: |
76 |
ShapeAttributeLayerSharedPtr getShapeAttributeLayer() const |
77 |
{ return mpAttributeLayer; } |
78 |
|
79 |
- bool isRepeatCountValid() const { return maRepeats; } |
80 |
+ bool isRepeatCountValid() const { return bool(maRepeats); } |
81 |
double getRepeatCount() const { return *maRepeats; } |
82 |
bool isAutoReverse() const { return mbAutoReverse; } |
83 |
|
84 |
--- slideshow/source/engine/rehearsetimingsactivity.cxx.orig 2015-04-20 19:36:29 UTC |
85 |
+++ slideshow/source/engine/rehearsetimingsactivity.cxx |
86 |
@@ -400,11 +400,12 @@ void RehearseTimingsActivity::viewsChang |
87 |
{ |
88 |
// new sprite pos, transformation might have changed: |
89 |
maSpriteRectangle = calcSpriteRectangle( maViews.front().first ); |
90 |
+ ::basegfx::B2DPoint rectMin( maSpriteRectangle.getMinimum() ); |
91 |
|
92 |
// reposition sprites |
93 |
for_each_sprite( boost::bind( &cppcanvas::Sprite::move, |
94 |
_1, |
95 |
- boost::cref(maSpriteRectangle.getMinimum())) ); |
96 |
+ boost::cref( rectMin )) ); |
97 |
|
98 |
// sprites changed, need screen update |
99 |
mrScreenUpdater.notifyUpdate(); |
100 |
--- slideshow/source/engine/shapes/appletshape.cxx.orig 2015-04-20 19:36:29 UTC |
101 |
+++ slideshow/source/engine/shapes/appletshape.cxx |
102 |
@@ -148,12 +148,13 @@ namespace slideshow |
103 |
void AppletShape::implViewsChanged() |
104 |
{ |
105 |
// resize all ViewShapes |
106 |
+ ::basegfx::B2DRectangle bounds( AppletShape::getBounds() ); |
107 |
::std::for_each( maViewAppletShapes.begin(), |
108 |
maViewAppletShapes.end(), |
109 |
::boost::bind( |
110 |
&ViewAppletShape::resize, |
111 |
_1, |
112 |
- ::boost::cref( AppletShape::getBounds())) ); |
113 |
+ ::boost::cref( bounds )) ); |
114 |
} |
115 |
|
116 |
|
117 |
@@ -252,11 +253,12 @@ namespace slideshow |
118 |
|
119 |
bool AppletShape::implStartIntrinsicAnimation() |
120 |
{ |
121 |
+ ::basegfx::B2DRectangle bounds( getBounds() ); |
122 |
::std::for_each( maViewAppletShapes.begin(), |
123 |
maViewAppletShapes.end(), |
124 |
::boost::bind( &ViewAppletShape::startApplet, |
125 |
_1, |
126 |
- ::boost::cref( getBounds() ))); |
127 |
+ ::boost::cref( bounds ))); |
128 |
mbIsPlaying = true; |
129 |
|
130 |
return true; |
131 |
--- slideshow/source/engine/shapes/drawshape.cxx.orig 2015-04-20 19:36:29 UTC |
132 |
+++ slideshow/source/engine/shapes/drawshape.cxx |
133 |
@@ -168,6 +168,7 @@ namespace slideshow |
134 |
} |
135 |
|
136 |
// redraw all view shapes, by calling their update() method |
137 |
+ ViewShape::RenderArgs renderArgs( getViewRenderArgs() ); |
138 |
if( ::std::count_if( maViewShapes.begin(), |
139 |
maViewShapes.end(), |
140 |
::boost::bind<bool>( |
141 |
@@ -178,8 +179,7 @@ namespace slideshow |
142 |
// the extra mem_fn. WTF. |
143 |
_1, |
144 |
::boost::cref( mpCurrMtf ), |
145 |
- ::boost::cref( |
146 |
- getViewRenderArgs() ), |
147 |
+ ::boost::cref( renderArgs ), |
148 |
nUpdateFlags, |
149 |
isVisible() ) ) |
150 |
!= static_cast<ViewShapeVector::difference_type>(maViewShapes.size()) ) |
151 |
--- slideshow/source/engine/shapes/mediashape.cxx.orig 2015-04-20 19:36:29 UTC |
152 |
+++ slideshow/source/engine/shapes/mediashape.cxx |
153 |
@@ -125,12 +125,13 @@ namespace slideshow |
154 |
void MediaShape::implViewsChanged() |
155 |
{ |
156 |
// resize all ViewShapes |
157 |
+ ::basegfx::B2DRectangle bounds( getBounds() ); |
158 |
::std::for_each( maViewMediaShapes.begin(), |
159 |
maViewMediaShapes.end(), |
160 |
::boost::bind( |
161 |
&ViewMediaShape::resize, |
162 |
_1, |
163 |
- ::boost::cref( getBounds())) ); |
164 |
+ ::boost::cref( bounds )) ); |
165 |
} |
166 |
|
167 |
|
168 |
--- slideshow/source/engine/unoviewcontainer.cxx.orig 2015-04-20 19:36:29 UTC |
169 |
+++ slideshow/source/engine/unoviewcontainer.cxx |
170 |
@@ -45,11 +45,12 @@ namespace slideshow |
171 |
const UnoViewVector::iterator aEnd( maViews.end() ); |
172 |
|
173 |
// already added? |
174 |
+ uno::Reference<presentation::XSlideShowView> xView (rView->getUnoView()); |
175 |
if( ::std::find_if( maViews.begin(), |
176 |
aEnd, |
177 |
::boost::bind( |
178 |
::std::equal_to< uno::Reference< presentation::XSlideShowView > >(), |
179 |
- ::boost::cref( rView->getUnoView() ), |
180 |
+ ::boost::cref( xView ), |
181 |
::boost::bind( |
182 |
&UnoView::getUnoView, |
183 |
_1 ) ) ) != aEnd ) |