Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9e90038b
Kaydet (Commit)
9e90038b
authored
Tem 31, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
canvas: replace boost::function with std::function
Change-Id: Ia3644bc0d9db2159aa4e9f05ca2f36e60b63e6f4
üst
69885050
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
ogl_canvashelper.cxx
canvas/source/opengl/ogl_canvashelper.cxx
+1
-0
ogl_spritedevicehelper.cxx
canvas/source/opengl/ogl_spritedevicehelper.cxx
+1
-1
simplecanvasimpl.cxx
canvas/source/simplecanvas/simplecanvasimpl.cxx
+1
-0
propertysethelper.cxx
canvas/source/tools/propertysethelper.cxx
+2
-2
propertysethelper.hxx
include/canvas/propertysethelper.hxx
+3
-3
No files found.
canvas/source/opengl/ogl_canvashelper.cxx
Dosyayı görüntüle @
9e90038b
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <GL/glew.h>
#include <GL/glew.h>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#include <memory>
#include <memory>
...
...
canvas/source/opengl/ogl_spritedevicehelper.cxx
Dosyayı görüntüle @
9e90038b
...
@@ -297,7 +297,7 @@ namespace oglcanvas
...
@@ -297,7 +297,7 @@ namespace oglcanvas
SpriteComparator
());
SpriteComparator
());
std
::
for_each
(
aSprites
.
begin
(),
std
::
for_each
(
aSprites
.
begin
(),
aSprites
.
end
(),
aSprites
.
end
(),
boost
::
mem_fn
(
&
CanvasCustomSprite
::
renderSprite
));
std
::
mem_fn
(
&
CanvasCustomSprite
::
renderSprite
));
// frame counter, other info
// frame counter, other info
...
...
canvas/source/simplecanvas/simplecanvasimpl.cxx
Dosyayı görüntüle @
9e90038b
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <canvas/canvastools.hxx>
#include <canvas/canvastools.hxx>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
#include <boost/function.hpp>
#define SERVICE_NAME "com.sun.star.rendering.SimpleCanvas"
#define SERVICE_NAME "com.sun.star.rendering.SimpleCanvas"
...
...
canvas/source/tools/propertysethelper.cxx
Dosyayı görüntüle @
9e90038b
...
@@ -110,7 +110,7 @@ namespace canvas
...
@@ -110,7 +110,7 @@ namespace canvas
throwUnknown
(
aPropertyName
);
throwUnknown
(
aPropertyName
);
}
}
if
(
aCallbacks
.
setter
.
empty
()
)
if
(
!
aCallbacks
.
setter
)
throwVeto
(
aPropertyName
);
throwVeto
(
aPropertyName
);
aCallbacks
.
setter
(
aValue
);
aCallbacks
.
setter
(
aValue
);
...
@@ -126,7 +126,7 @@ namespace canvas
...
@@ -126,7 +126,7 @@ namespace canvas
throwUnknown
(
aPropertyName
);
throwUnknown
(
aPropertyName
);
}
}
if
(
!
aCallbacks
.
getter
.
empty
()
)
if
(
aCallbacks
.
getter
)
return
aCallbacks
.
getter
();
return
aCallbacks
.
getter
();
// TODO(Q1): subtlety, empty getter method silently returns
// TODO(Q1): subtlety, empty getter method silently returns
...
...
include/canvas/propertysethelper.hxx
Dosyayı görüntüle @
9e90038b
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <canvas/canvastools.hxx>
#include <canvas/canvastools.hxx>
#include <
boost/function.hpp
>
#include <
functional
>
#include <vector>
#include <vector>
#include <memory>
#include <memory>
...
@@ -50,8 +50,8 @@ namespace canvas
...
@@ -50,8 +50,8 @@ namespace canvas
class
CANVASTOOLS_DLLPUBLIC
PropertySetHelper
class
CANVASTOOLS_DLLPUBLIC
PropertySetHelper
{
{
public
:
public
:
typedef
boost
::
function0
<
::
com
::
sun
::
star
::
uno
::
Any
>
GetterType
;
typedef
std
::
function
<::
com
::
sun
::
star
::
uno
::
Any
()
>
GetterType
;
typedef
boost
::
function1
<
void
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
>
SetterType
;
typedef
std
::
function
<
void
(
const
::
com
::
sun
::
star
::
uno
::
Any
&
)
>
SetterType
;
struct
Callbacks
struct
Callbacks
{
{
GetterType
getter
;
GetterType
getter
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment