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
f59c489e
Kaydet (Commit)
f59c489e
authored
Mar 30, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert more sites to VclPtrInstance.
Change-Id: I364c5eb176d5003deb1938810cccf4f2aaedbd59
üst
c7f3e599
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
15 deletions
+17
-15
lifecycle.cxx
vcl/qa/cppunit/lifecycle.cxx
+4
-4
dbggui.cxx
vcl/source/app/dbggui.cxx
+2
-2
print2.cxx
vcl/source/gdi/print2.cxx
+2
-2
print3.cxx
vcl/source/gdi/print3.cxx
+6
-4
map.cxx
vcl/source/outdev/map.cxx
+1
-2
builder.cxx
vcl/source/window/builder.cxx
+2
-1
No files found.
vcl/qa/cppunit/lifecycle.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -68,8 +68,8 @@ void LifecycleTest::testVirtualDevice()
void
LifecycleTest
::
testMultiDispose
()
{
VclPtr
<
WorkWindow
>
xWin
(
new
WorkWindow
((
vcl
::
Window
*
)
NULL
,
WB_APP
|
WB_STDWORK
)
);
VclPtr
Instance
<
WorkWindow
>
xWin
((
vcl
::
Window
*
)
NULL
,
WB_APP
|
WB_STDWORK
);
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
xWin
->
disposeOnce
();
xWin
->
disposeOnce
();
...
...
@@ -122,8 +122,8 @@ public:
void
LifecycleTest
::
testChildDispose
()
{
VclPtr
<
WorkWindow
>
xWin
(
new
WorkWindow
((
vcl
::
Window
*
)
NULL
,
WB_APP
|
WB_STDWORK
)
);
VclPtr
Instance
<
WorkWindow
>
xWin
((
vcl
::
Window
*
)
NULL
,
WB_APP
|
WB_STDWORK
);
CPPUNIT_ASSERT
(
xWin
.
get
()
!=
NULL
);
VclPtr
<
DisposableChild
>
xChild
(
new
DisposableChild
(
xWin
.
get
()));
xWin
->
Show
();
...
...
vcl/source/app/dbggui.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -354,9 +354,9 @@ IMPL_LINK( DbgDialog, ClickHdl, Button*, pButton )
}
if
(
(
aData
.
nTestFlags
&
~
IMMEDIATE_FLAGS
)
!=
(
pData
->
nTestFlags
&
~
IMMEDIATE_FLAGS
)
)
{
ScopedVclPtr
<
MessageDialog
>
aBox
(
new
MessageDialog
(
this
,
OUString
(
ScopedVclPtr
Instance
<
MessageDialog
>
aBox
(
this
,
OUString
(
"Some of the changed settings will only be active after "
"restarting the process"
),
VCL_MESSAGE_INFO
)
)
;
"restarting the process"
),
VCL_MESSAGE_INFO
);
aBox
->
Execute
();
}
EndDialog
(
RET_OK
);
...
...
vcl/source/gdi/print2.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -1155,10 +1155,10 @@ bool OutputDevice::RemoveTransparenciesFromMetaFile( const GDIMetaFile& rInMtf,
Point
aDstPtPix
(
aBoundRect
.
TopLeft
()
);
Size
aDstSzPix
;
ScopedVclPtr
<
VirtualDevice
>
aMapVDev
(
new
VirtualDevice
()
)
;
// here, we record only mapmode information
ScopedVclPtr
Instance
<
VirtualDevice
>
aMapVDev
;
// here, we record only mapmode information
aMapVDev
->
EnableOutput
(
false
);
ScopedVclPtr
<
VirtualDevice
>
aPaintVDev
(
new
VirtualDevice
()
)
;
// into this one, we render.
ScopedVclPtr
Instance
<
VirtualDevice
>
aPaintVDev
;
// into this one, we render.
aPaintVDev
->
SetBackground
(
aBackgroundComponent
.
aBgColor
);
rOutMtf
.
AddAction
(
new
MetaPushAction
(
PushFlags
::
MAPMODE
)
);
...
...
vcl/source/gdi/print3.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -305,8 +305,9 @@ void Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
{
if
(
xController
->
isShowDialogs
())
{
ScopedVclPtr
<
MessageDialog
>
aBox
(
new
MessageDialog
(
NULL
,
"ErrorNoPrinterDialog"
,
"vcl/ui/errornoprinterdialog.ui"
));
ScopedVclPtrInstance
<
MessageDialog
>
aBox
(
nullptr
,
"ErrorNoPrinterDialog"
,
"vcl/ui/errornoprinterdialog.ui"
);
aBox
->
Execute
();
}
xController
->
setValue
(
OUString
(
"IsDirect"
),
...
...
@@ -454,8 +455,9 @@ void Printer::PreparePrintJob(std::shared_ptr<PrinterController> xController,
{
if
(
xController
->
getFilteredPageCount
()
==
0
)
{
ScopedVclPtr
<
MessageDialog
>
aBox
(
new
MessageDialog
(
NULL
,
"ErrorNoContentDialog"
,
"vcl/ui/errornocontentdialog.ui"
));
ScopedVclPtrInstance
<
MessageDialog
>
aBox
(
nullptr
,
"ErrorNoContentDialog"
,
"vcl/ui/errornocontentdialog.ui"
);
aBox
->
Execute
();
return
;
}
...
...
vcl/source/outdev/map.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -232,9 +232,8 @@ static void ImplCalcMapResolution( const MapMode& rMapMode,
vcl
::
Window
::
ImplInitAppFontData
(
pSVData
->
maWinData
.
mpFirstFrame
);
else
{
VclPtr
<
WorkWindow
>
pWin
=
new
WorkWindow
(
NULL
,
0
);
ScopedVclPtrInstance
<
WorkWindow
>
pWin
(
nullptr
,
0
);
vcl
::
Window
::
ImplInitAppFontData
(
pWin
);
pWin
.
disposeAndClear
();
}
}
rMapRes
.
mnMapScNumX
=
pSVData
->
maGDIData
.
mnAppFontX
;
...
...
vcl/source/window/builder.cxx
Dosyayı görüntüle @
f59c489e
...
...
@@ -1770,6 +1770,7 @@ vcl::Window *VclBuilder::makeObject(vcl::Window *pParent, const OString &name, c
SAL_WARN_IF
(
!
pWindow
,
"vcl.layout"
,
"probably need to implement "
<<
name
.
getStr
()
<<
" or add a make"
<<
name
.
getStr
()
<<
" function"
);
if
(
pWindow
)
{
VclPtr
<
Window
>
xWindow
(
pWindow
,
SAL_NO_ACQUIRE
);
pWindow
->
SetHelpId
(
m_sHelpRoot
+
id
);
SAL_INFO
(
"vcl.layout"
,
"for "
<<
name
.
getStr
()
<<
", created "
<<
pWindow
<<
" child of "
<<
...
...
@@ -1777,7 +1778,7 @@ vcl::Window *VclBuilder::makeObject(vcl::Window *pParent, const OString &name, c
pWindow
->
mpWindowImpl
->
mpRealParent
.
get
()
<<
"/"
<<
pWindow
->
mpWindowImpl
->
mpBorderWindow
.
get
()
<<
") with helpid "
<<
pWindow
->
GetHelpId
().
getStr
());
m_aChildren
.
push_back
(
WinAndId
(
id
,
p
Window
,
bVertical
));
m_aChildren
.
push_back
(
WinAndId
(
id
,
x
Window
,
bVertical
));
}
return
pWindow
;
}
...
...
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