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
90da361c
Kaydet (Commit)
90da361c
authored
Eki 27, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#706465 Uncaught exception
Change-Id: Ic328c8a68fac462c402b70f85093cd8b14d2882d
üst
d8a8b5ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
definitioncontainer.cxx
dbaccess/source/core/dataaccess/definitioncontainer.cxx
+33
-10
No files found.
dbaccess/source/core/dataaccess/definitioncontainer.cxx
Dosyayı görüntüle @
90da361c
...
...
@@ -29,6 +29,7 @@
#include <comphelper/sequence.hxx>
#include <comphelper/enumhelper.hxx>
#include <comphelper/extract.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/ucb/CommandInfo.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
...
...
@@ -212,19 +213,41 @@ void SAL_CALL ODefinitionContainer::replaceByName( const OUString& _rName, const
{
ResettableMutexGuard
aGuard
(
m_aMutex
);
// let derived classes approve the new object
Reference
<
XContent
>
xNewElement
(
aElement
,
UNO_QUERY
);
approveNewObject
(
_rName
,
xNewElement
);
// will throw if necessary
try
{
// let derived classes approve the new object
Reference
<
XContent
>
xNewElement
(
aElement
,
UNO_QUERY
);
approveNewObject
(
_rName
,
xNewElement
);
// will throw if necessary
// the old element (for the notifications)
Reference
<
XContent
>
xOldElement
=
implGetByName
(
_rName
,
impl_haveAnyListeners_nothrow
()
);
// the old element (for the notifications)
Reference
<
XContent
>
xOldElement
=
implGetByName
(
_rName
,
impl_haveAnyListeners_nothrow
()
);
notifyByName
(
aGuard
,
_rName
,
xNewElement
,
xOldElement
,
E_REPLACED
,
ApproveListeners
);
implReplace
(
_rName
,
xNewElement
);
notifyByName
(
aGuard
,
_rName
,
xNewElement
,
xOldElement
,
E_REPLACED
,
ContainerListemers
);
notifyByName
(
aGuard
,
_rName
,
xNewElement
,
xOldElement
,
E_REPLACED
,
ApproveListeners
);
implReplace
(
_rName
,
xNewElement
);
notifyByName
(
aGuard
,
_rName
,
xNewElement
,
xOldElement
,
E_REPLACED
,
ContainerListemers
);
// and dispose it
disposeComponent
(
xOldElement
);
// and dispose it
disposeComponent
(
xOldElement
);
}
catch
(
const
RuntimeException
&
)
{
throw
;
}
catch
(
const
NoSuchElementException
&
)
{
throw
;
}
catch
(
const
WrappedTargetException
&
)
{
throw
;
}
catch
(
const
Exception
&
e
)
{
css
::
uno
::
Any
a
(
cppu
::
getCaughtException
());
throw
css
::
lang
::
WrappedTargetException
(
"wrapped Exception "
+
e
.
Message
,
css
::
uno
::
Reference
<
css
::
uno
::
XInterface
>
(),
a
);
}
}
namespace
...
...
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