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
186f365a
Kaydet (Commit)
186f365a
authored
Kas 19, 2015
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
starmath: Use std::unique_ptr for exception safety
Change-Id: Idc71dc410000b88463440dd18f41ff945b7616d7
üst
11b7a2c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
parse.cxx
starmath/source/parse.cxx
+3
-4
No files found.
starmath/source/parse.cxx
Dosyayı görüntüle @
186f365a
...
...
@@ -992,11 +992,11 @@ void SmParser::DoTable()
void
SmParser
::
DoAlign
()
// parse alignment info (if any), then go on with rest of expression
{
SmStructureNode
*
pSNode
=
nullptr
;
std
::
unique_ptr
<
SmStructureNode
>
pSNode
;
if
(
TokenInGroup
(
TGALIGN
))
{
pSNode
=
new
SmAlignNode
(
m_aCurToken
);
pSNode
.
reset
(
new
SmAlignNode
(
m_aCurToken
)
);
NextToken
();
...
...
@@ -1004,7 +1004,6 @@ void SmParser::DoAlign()
if
(
TokenInGroup
(
TGALIGN
))
{
Error
(
PE_DOUBLE_ALIGN
);
delete
pSNode
;
return
;
}
}
...
...
@@ -1014,7 +1013,7 @@ void SmParser::DoAlign()
if
(
pSNode
)
{
pSNode
->
SetSubNode
(
0
,
popOrZero
(
m_aNodeStack
));
m_aNodeStack
.
push_front
(
std
::
unique_ptr
<
SmStructureNode
>
(
pSNode
));
m_aNodeStack
.
push_front
(
std
::
move
(
pSNode
));
}
}
...
...
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