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
61bfcf16
Kaydet (Commit)
61bfcf16
authored
Ock 15, 2018
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:useuniqueptr in idl
Change-Id: I3681d119dda85400dbb33c96fab736c262f7ce8a
üst
13e55ced
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
11 deletions
+8
-11
database.hxx
idl/inc/database.hxx
+1
-1
globals.hxx
idl/inc/globals.hxx
+4
-3
command.cxx
idl/source/prj/command.cxx
+2
-2
database.cxx
idl/source/prj/database.cxx
+1
-3
globals.cxx
idl/source/prj/globals.cxx
+0
-2
No files found.
idl/inc/database.hxx
Dosyayı görüntüle @
61bfcf16
...
...
@@ -71,7 +71,7 @@ class SvIdlDataBase
sal_uInt32
nUniqueId
;
sal_uInt32
nVerbosity
;
StringList
aIdFileList
;
SvStringHashTable
*
pIdTable
;
std
::
unique_ptr
<
SvStringHashTable
>
pIdTable
;
SvRefMemberList
<
SvMetaType
*>
aTypeList
;
SvRefMemberList
<
SvMetaClass
*>
aClassList
;
...
...
idl/inc/globals.hxx
Dosyayı görüntüle @
61bfcf16
...
...
@@ -21,6 +21,7 @@
#define INCLUDED_IDL_INC_GLOBALS_HXX
#include "hash.hxx"
#include <memory>
struct
SvGlobalHashNames
{
...
...
@@ -68,8 +69,8 @@ struct SvGlobalHashNames
class
IdlDll
{
public
:
SvStringHashTable
*
pHashTable
;
SvGlobalHashNames
*
pGlobalNames
;
std
::
unique_ptr
<
SvStringHashTable
>
pHashTable
;
std
::
unique_ptr
<
SvGlobalHashNames
>
pGlobalNames
;
IdlDll
();
~
IdlDll
();
...
...
@@ -81,7 +82,7 @@ IdlDll & GetIdlApp();
inline SvStringHashEntry * SvHash_##Name() \
{ \
if( !GetIdlApp().pGlobalNames ) \
GetIdlApp().pGlobalNames
= new SvGlobalHashNames(
); \
GetIdlApp().pGlobalNames
.reset( new SvGlobalHashNames()
); \
return GetIdlApp().pGlobalNames->MM_##Name; \
}
...
...
idl/source/prj/command.cxx
Dosyayı görüntüle @
61bfcf16
...
...
@@ -108,9 +108,9 @@ char const CommandLineSyntax[] =
void
Init
()
{
if
(
!
GetIdlApp
().
pHashTable
)
GetIdlApp
().
pHashTable
=
new
SvStringHashTable
;
GetIdlApp
().
pHashTable
.
reset
(
new
SvStringHashTable
)
;
if
(
!
GetIdlApp
().
pGlobalNames
)
GetIdlApp
().
pGlobalNames
=
new
SvGlobalHashNames
(
);
GetIdlApp
().
pGlobalNames
.
reset
(
new
SvGlobalHashNames
()
);
}
bool
ReadIdl
(
SvIdlWorkingBase
*
pDataBase
,
const
SvCommand
&
rCommand
)
...
...
idl/source/prj/database.cxx
Dosyayı görüntüle @
61bfcf16
...
...
@@ -54,8 +54,6 @@ SvIdlDataBase::SvIdlDataBase( const SvCommand& rCmd )
SvIdlDataBase
::~
SvIdlDataBase
()
{
aIdFileList
.
clear
();
delete
pIdTable
;
}
#define ADD_TYPE( Name ) \
...
...
@@ -126,7 +124,7 @@ bool SvIdlDataBase::FindId( const OString& rIdName, sal_uLong * pVal )
void
SvIdlDataBase
::
InsertId
(
const
OString
&
rIdName
,
sal_uLong
nVal
)
{
if
(
!
pIdTable
)
pIdTable
=
new
SvStringHashTable
;
pIdTable
.
reset
(
new
SvStringHashTable
)
;
sal_uInt32
nHash
;
pIdTable
->
Insert
(
rIdName
,
&
nHash
)
->
SetValue
(
nVal
);
...
...
idl/source/prj/globals.cxx
Dosyayı görüntüle @
61bfcf16
...
...
@@ -41,8 +41,6 @@ IdlDll::IdlDll()
IdlDll
::~
IdlDll
()
{
delete
pGlobalNames
;
delete
pHashTable
;
}
inline
SvStringHashEntry
*
INS
(
const
OString
&
rName
)
...
...
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