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
476f5aad
Kaydet (Commit)
476f5aad
authored
Eyl 30, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cppcanvas: std::auto_ptr -> std::unique_ptr
Change-Id: Ic4584e4fe22c81c30d110ff65e79217f690f56f0
üst
d8e21f04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
implrenderer.cxx
cppcanvas/source/mtfrenderer/implrenderer.cxx
+3
-2
transparencygroupaction.cxx
cppcanvas/source/mtfrenderer/transparencygroupaction.cxx
+14
-10
transparencygroupaction.hxx
cppcanvas/source/mtfrenderer/transparencygroupaction.hxx
+4
-4
No files found.
cppcanvas/source/mtfrenderer/implrenderer.cxx
Dosyayı görüntüle @
476f5aad
...
...
@@ -72,6 +72,7 @@
#include <polypolyaction.hxx>
#include <textaction.hxx>
#include <transparencygroupaction.hxx>
#include <utility>
#include <vector>
#include <algorithm>
#include <iterator>
...
...
@@ -2452,8 +2453,8 @@ namespace cppcanvas
ActionSharedPtr
pFloatTransAction
(
internal
::
TransparencyGroupActionFactory
::
createTransparencyGroupAction
(
pMtf
,
pGradient
,
std
::
move
(
pMtf
)
,
std
::
move
(
pGradient
)
,
rParms
,
rStates
.
getState
().
mapModeTransform
*
::
vcl
::
unotools
::
b2DPointFromPoint
(
pAct
->
GetPoint
()
),
...
...
cppcanvas/source/mtfrenderer/transparencygroupaction.cxx
Dosyayı görüntüle @
476f5aad
...
...
@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <utility>
#include <tools/gen.hxx>
#include <canvas/debug.hxx>
...
...
@@ -87,8 +91,8 @@ namespace cppcanvas
Size of the transparency group object, in current
state coordinate system.
*/
TransparencyGroupAction
(
MtfAutoPtr
&
rGroupMtf
,
GradientAutoPtr
&
rAlphaGradient
,
TransparencyGroupAction
(
MtfAutoPtr
&
&
rGroupMtf
,
GradientAutoPtr
&
&
rAlphaGradient
,
const
Renderer
::
Parameters
&
rParms
,
const
::
basegfx
::
B2DPoint
&
rDstPoint
,
const
::
basegfx
::
B2DVector
&
rDstSize
,
...
...
@@ -141,15 +145,15 @@ namespace cppcanvas
}
SAL_WNODEPRECATED_DECLARATIONS_PUSH
TransparencyGroupAction
::
TransparencyGroupAction
(
MtfAutoPtr
&
rGroupMtf
,
GradientAutoPtr
&
rAlphaGradient
,
TransparencyGroupAction
::
TransparencyGroupAction
(
MtfAutoPtr
&
&
rGroupMtf
,
GradientAutoPtr
&
&
rAlphaGradient
,
const
Renderer
::
Parameters
&
rParms
,
const
::
basegfx
::
B2DPoint
&
rDstPoint
,
const
::
basegfx
::
B2DVector
&
rDstSize
,
const
CanvasSharedPtr
&
rCanvas
,
const
OutDevState
&
rState
)
:
mpGroupMtf
(
rGroupMtf
),
mpAlphaGradient
(
rAlphaGradient
),
mpGroupMtf
(
std
::
move
(
rGroupMtf
)
),
mpAlphaGradient
(
std
::
move
(
rAlphaGradient
)
),
maParms
(
rParms
),
maDstSize
(
rDstSize
),
mxBufferBitmap
(),
...
...
@@ -475,16 +479,16 @@ namespace cppcanvas
}
SAL_WNODEPRECATED_DECLARATIONS_PUSH
ActionSharedPtr
TransparencyGroupActionFactory
::
createTransparencyGroupAction
(
MtfAutoPtr
&
rGroupMtf
,
GradientAutoPtr
&
rAlphaGradient
,
ActionSharedPtr
TransparencyGroupActionFactory
::
createTransparencyGroupAction
(
MtfAutoPtr
&
&
rGroupMtf
,
GradientAutoPtr
&
&
rAlphaGradient
,
const
Renderer
::
Parameters
&
rParms
,
const
::
basegfx
::
B2DPoint
&
rDstPoint
,
const
::
basegfx
::
B2DVector
&
rDstSize
,
const
CanvasSharedPtr
&
rCanvas
,
const
OutDevState
&
rState
)
{
return
ActionSharedPtr
(
new
TransparencyGroupAction
(
rGroupMtf
,
rAlphaGradient
,
return
ActionSharedPtr
(
new
TransparencyGroupAction
(
std
::
move
(
rGroupMtf
)
,
std
::
move
(
rAlphaGradient
)
,
rParms
,
rDstPoint
,
rDstSize
,
...
...
cppcanvas/source/mtfrenderer/transparencygroupaction.hxx
Dosyayı görüntüle @
476f5aad
...
...
@@ -43,8 +43,8 @@ namespace cppcanvas
{
struct
OutDevState
;
typedef
::
std
::
auto
_ptr
<
GDIMetaFile
>
MtfAutoPtr
;
typedef
::
std
::
auto
_ptr
<
Gradient
>
GradientAutoPtr
;
typedef
::
std
::
unique
_ptr
<
GDIMetaFile
>
MtfAutoPtr
;
typedef
::
std
::
unique
_ptr
<
Gradient
>
GradientAutoPtr
;
/** Transparency group action.
...
...
@@ -83,8 +83,8 @@ namespace cppcanvas
Size of the transparency group object, in current
state coordinate system.
*/
static
ActionSharedPtr
createTransparencyGroupAction
(
MtfAutoPtr
&
rGroupMtf
,
GradientAutoPtr
&
rAlphaGradient
,
static
ActionSharedPtr
createTransparencyGroupAction
(
MtfAutoPtr
&
&
rGroupMtf
,
GradientAutoPtr
&
&
rAlphaGradient
,
const
Renderer
::
Parameters
&
rParms
,
const
::
basegfx
::
B2DPoint
&
rDstPoint
,
const
::
basegfx
::
B2DVector
&
rDstSize
,
...
...
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