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
048a32d9
Kaydet (Commit)
048a32d9
authored
Kas 17, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use unique_ptr for pImpl in tools/
Change-Id: I7ac7eca32a67524f6c87696c16b16128e6d8518b
üst
81ff7cfd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
14 deletions
+12
-14
errinf.hxx
include/tools/errinf.hxx
+4
-3
fract.hxx
include/tools/fract.hxx
+2
-1
resary.hxx
include/tools/resary.hxx
+2
-1
fract.cxx
tools/source/generic/fract.cxx
+0
-1
resary.cxx
tools/source/rc/resary.cxx
+0
-1
errinf.cxx
tools/source/ref/errinf.cxx
+4
-7
No files found.
include/tools/errinf.hxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -26,6 +26,7 @@
#include <rtl/ustring.hxx>
#include <tools/errcode.hxx>
#include <tools/toolsdllapi.h>
#include <memory>
// FIXME: horrible legacy dependency on VCL from tools.
namespace
vcl
{
class
Window
;
}
...
...
@@ -54,7 +55,7 @@ class TOOLS_DLLPUBLIC DynamicErrorInfo : public ErrorInfo
friend
class
EDcr_Impl
;
private
:
EDcr_Impl
*
pImpl
;
std
::
unique_ptr
<
EDcr_Impl
>
pImpl
;
public
:
...
...
@@ -117,7 +118,7 @@ class TOOLS_DLLPUBLIC ErrorContext
friend
class
ErrorHandler
;
private
:
ErrorContextImpl
*
pImpl
;
std
::
unique_ptr
<
ErrorContextImpl
>
pImpl
;
public
:
ErrorContext
(
vcl
::
Window
*
pWin
=
nullptr
);
...
...
@@ -140,7 +141,7 @@ class TOOLS_DLLPUBLIC ErrorHandler
friend
class
ErrHdl_Impl
;
private
:
ErrHdl_Impl
*
pImpl
;
std
::
unique_ptr
<
ErrHdl_Impl
>
pImpl
;
static
sal_uInt16
HandleError_Impl
(
sal_uIntPtr
lId
,
sal_uInt16
nFlags
,
...
...
include/tools/fract.hxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -21,6 +21,7 @@
#include <sal/types.h>
#include <tools/toolsdllapi.h>
#include <memory>
class
SvStream
;
...
...
@@ -30,7 +31,7 @@ class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Fraction
{
struct
Impl
;
Impl
*
mpImpl
;
std
::
unique_ptr
<
Impl
>
mpImpl
;
bool
HasOverflowValue
();
...
...
include/tools/resary.hxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -21,6 +21,7 @@
#include <tools/toolsdllapi.h>
#include <rtl/ustring.hxx>
#include <memory>
#define RESARRAY_INDEX_NOTFOUND (0xffffffff)
...
...
@@ -29,7 +30,7 @@ class ResId;
class
TOOLS_DLLPUBLIC
ResStringArray
{
struct
Impl
;
Impl
*
mpImpl
;
std
::
unique_ptr
<
Impl
>
mpImpl
;
ResStringArray
(
const
ResStringArray
&
)
=
delete
;
ResStringArray
&
operator
=
(
const
ResStringArray
&
)
=
delete
;
...
...
tools/source/generic/fract.cxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -90,7 +90,6 @@ Fraction::Fraction( double dVal ) : mpImpl(new Impl)
Fraction
::~
Fraction
()
{
delete
mpImpl
;
}
bool
Fraction
::
HasOverflowValue
()
...
...
tools/source/rc/resary.cxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -70,7 +70,6 @@ ResStringArray::ResStringArray( const ResId& rResId ) :
ResStringArray
::~
ResStringArray
()
{
delete
mpImpl
;
}
OUString
ResStringArray
::
GetString
(
sal_uInt32
nIndex
)
const
...
...
tools/source/ref/errinf.cxx
Dosyayı görüntüle @
048a32d9
...
...
@@ -116,9 +116,9 @@ DynamicErrorInfo::operator sal_uIntPtr() const
}
DynamicErrorInfo
::
DynamicErrorInfo
(
sal_uIntPtr
lArgUserId
,
sal_uInt16
nMask
)
:
ErrorInfo
(
lArgUserId
)
:
ErrorInfo
(
lArgUserId
),
pImpl
(
new
EDcr_Impl
)
{
pImpl
=
new
EDcr_Impl
;
pImpl
->
RegisterEDcr
(
this
);
pImpl
->
nMask
=
nMask
;
}
...
...
@@ -126,7 +126,6 @@ DynamicErrorInfo::DynamicErrorInfo(sal_uIntPtr lArgUserId, sal_uInt16 nMask)
DynamicErrorInfo
::~
DynamicErrorInfo
()
{
EDcr_Impl
::
UnRegisterEDcr
(
this
);
delete
pImpl
;
}
ErrorInfo
*
EDcr_Impl
::
GetDynamicErrorInfo
(
sal_uIntPtr
lId
)
...
...
@@ -175,8 +174,8 @@ struct ErrorContextImpl
};
ErrorContext
::
ErrorContext
(
vcl
::
Window
*
pWinP
)
:
pImpl
(
new
ErrorContextImpl
)
{
pImpl
=
new
ErrorContextImpl
();
ErrorContext
*&
pHdl
=
TheEDcrData
::
get
().
pFirstCtx
;
pImpl
->
pWin
=
pWinP
;
pImpl
->
pNext
=
pHdl
;
...
...
@@ -190,7 +189,6 @@ ErrorContext::~ErrorContext()
ppCtx
=&
((
*
ppCtx
)
->
pImpl
->
pNext
);
if
(
*
ppCtx
)
*
ppCtx
=
(
*
ppCtx
)
->
pImpl
->
pNext
;
delete
pImpl
;
}
ErrorContext
*
ErrorContext
::
GetContext
()
...
...
@@ -199,8 +197,8 @@ ErrorContext *ErrorContext::GetContext()
}
ErrorHandler
::
ErrorHandler
()
:
pImpl
(
new
ErrHdl_Impl
)
{
pImpl
=
new
ErrHdl_Impl
;
EDcrData
&
pData
=
TheEDcrData
::
get
();
ErrorHandler
*&
pHdl
=
pData
.
pFirstHdl
;
pImpl
->
pNext
=
pHdl
;
...
...
@@ -216,7 +214,6 @@ ErrorHandler::~ErrorHandler()
ppHdl
=&
((
*
ppHdl
)
->
pImpl
->
pNext
);
if
(
*
ppHdl
)
*
ppHdl
=
(
*
ppHdl
)
->
pImpl
->
pNext
;
delete
pImpl
;
}
vcl
::
Window
*
ErrorContext
::
GetParent
()
...
...
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