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
9c205723
Kaydet (Commit)
9c205723
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 sax/
Change-Id: I0bef03451437cbdc5b0fed6b67690ac1d547291d
üst
b442d5dd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
fastparser.hxx
include/sax/fastparser.hxx
+2
-1
attrlistimpl.cxx
sax/source/expatwrap/attrlistimpl.cxx
+3
-4
attrlistimpl.hxx
sax/source/expatwrap/attrlistimpl.hxx
+2
-1
fastparser.cxx
sax/source/fastparser/fastparser.cxx
+0
-1
No files found.
include/sax/fastparser.hxx
Dosyayı görüntüle @
9c205723
...
...
@@ -25,6 +25,7 @@
#include <cppuhelper/implbase2.hxx>
#include <sax/fastsaxdllapi.h>
#include <memory>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
xml
{
namespace
sax
{
...
...
@@ -46,7 +47,7 @@ class FASTSAX_DLLPUBLIC FastSaxParser
css
::
xml
::
sax
::
XFastParser
,
css
::
lang
::
XServiceInfo
>
{
FastSaxParserImpl
*
mpImpl
;
std
::
unique_ptr
<
FastSaxParserImpl
>
mpImpl
;
public
:
FastSaxParser
();
...
...
sax/source/expatwrap/attrlistimpl.cxx
Dosyayı görüntüle @
9c205723
...
...
@@ -64,9 +64,9 @@ sal_Int16 AttributeList::getLength() throw (RuntimeException, std::exception)
AttributeList
::
AttributeList
(
const
AttributeList
&
r
)
:
cppu
::
WeakImplHelper
<
XAttributeList
,
XCloneable
>
()
cppu
::
WeakImplHelper
<
XAttributeList
,
XCloneable
>
(),
m_pImpl
(
new
AttributeList_impl
)
{
m_pImpl
=
new
AttributeList_impl
;
*
m_pImpl
=
*
(
r
.
m_pImpl
);
}
...
...
@@ -134,15 +134,14 @@ Reference< XCloneable > AttributeList::createClone() throw (RuntimeException, st
AttributeList
::
AttributeList
()
:
m_pImpl
(
new
AttributeList_impl
)
{
m_pImpl
=
new
AttributeList_impl
;
}
AttributeList
::~
AttributeList
()
{
delete
m_pImpl
;
}
...
...
sax/source/expatwrap/attrlistimpl.hxx
Dosyayı görüntüle @
9c205723
...
...
@@ -25,6 +25,7 @@
#include <com/sun/star/uno/RuntimeException.hpp>
#include <com/sun/star/util/XCloneable.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
#include <memory>
namespace
sax_expatwrap
{
...
...
@@ -65,7 +66,7 @@ public:
createClone
()
throw
(
css
::
uno
::
RuntimeException
,
std
::
exception
)
override
;
private
:
st
ruct
AttributeList_impl
*
m_pImpl
;
st
d
::
unique_ptr
<
AttributeList_impl
>
m_pImpl
;
};
}
...
...
sax/source/fastparser/fastparser.cxx
Dosyayı görüntüle @
9c205723
...
...
@@ -1288,7 +1288,6 @@ FastSaxParser::FastSaxParser() : mpImpl(new FastSaxParserImpl(this)) {}
FastSaxParser
::~
FastSaxParser
()
{
delete
mpImpl
;
}
void
FastSaxParser
::
parseStream
(
const
xml
::
sax
::
InputSource
&
aInputSource
)
...
...
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