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
75705b69
Kaydet (Commit)
75705b69
authored
Haz 15, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
catch by const reference
üst
43afab88
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
vbacontrol.cxx
vbahelper/source/msforms/vbacontrol.cxx
+4
-4
vbacommandbar.cxx
vbahelper/source/vbahelper/vbacommandbar.cxx
+2
-2
vbadocumentbase.cxx
vbahelper/source/vbahelper/vbadocumentbase.cxx
+8
-7
vbashapes.cxx
vbahelper/source/vbahelper/vbashapes.cxx
+2
-2
No files found.
vbahelper/source/msforms/vbacontrol.cxx
Dosyayı görüntüle @
75705b69
...
...
@@ -93,7 +93,7 @@ ScVbaControl::getWindowPeer() throw (uno::RuntimeException)
uno
::
Reference
<
awt
::
XControl
>
xControl
(
xControlAccess
->
getControl
(
xControlModel
),
uno
::
UNO_QUERY
);
xWinPeer
=
xControl
->
getPeer
();
}
catch
(
uno
::
Exception
)
catch
(
const
uno
::
Exception
&
)
{
throw
uno
::
RuntimeException
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"The Control does not exsit"
)),
uno
::
Reference
<
uno
::
XInterface
>
()
);
...
...
@@ -305,7 +305,7 @@ ScVbaControl::getControlSource() throw (uno::RuntimeException)
xConvertor
->
setPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Address"
)
),
uno
::
makeAny
(
aAddress
)
);
xConvertor
->
getPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"XL_A1_Representation"
)
)
)
>>=
sControlSource
;
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
}
...
...
@@ -345,7 +345,7 @@ ScVbaControl::getRowSource() throw (uno::RuntimeException)
xConvertor
->
setPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Address"
)),
uno
::
makeAny
(
aAddress
)
);
xConvertor
->
getPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"XL_A1_Representation"
)
)
)
>>=
sRowSource
;
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
}
...
...
@@ -469,7 +469,7 @@ void ScVbaControl::fireEvent( script::ScriptEvent& evt )
}
}
}
catch
(
uno
::
Exception
&
e
)
catch
(
const
uno
::
Exception
&
)
{
}
}
...
...
vbahelper/source/vbahelper/vbacommandbar.cxx
Dosyayı görüntüle @
75705b69
...
...
@@ -100,7 +100,7 @@ ScVbaCommandBar::getVisible() throw (uno::RuntimeException)
getPropertyValue
(
aToolBar
,
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Visible"
)
)
)
>>=
bVisible
;
}
}
catch
(
uno
::
Exception
e
)
catch
(
const
uno
::
Exception
&
)
{
}
return
bVisible
;
...
...
@@ -122,7 +122,7 @@ ScVbaCommandBar::setVisible( ::sal_Bool _visible ) throw (uno::RuntimeException)
xLayoutManager
->
destroyElement
(
m_sResourceUrl
);
}
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
OSL_TRACE
(
"SetVisible get an exception
\n
"
);
}
...
...
vbahelper/source/vbahelper/vbadocumentbase.cxx
Dosyayı görüntüle @
75705b69
...
...
@@ -157,7 +157,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
xDispatch
->
dispatch
(
aURL
,
uno
::
Sequence
<
beans
::
PropertyValue
>
()
);
bUIClose
=
sal_True
;
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
...
...
@@ -172,10 +172,11 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
// The boolean parameter DeliverOwnership tells objects vetoing the close process that they may
// assume ownership if they object the closure by throwing a CloseVetoException
// Here we give up ownership. To be on the safe side, catch possible veto exception anyway.
try
{
try
{
xCloseable
->
close
(
sal_True
);
}
catch
(
util
::
CloseVetoException
)
catch
(
const
util
::
CloseVetoException
&
)
{
//close is cancelled, nothing to do
}
...
...
@@ -193,7 +194,7 @@ VbaDocumentBase::Close( const uno::Any &rSaveArg, const uno::Any &rFileArg,
{
xDisposable
->
dispose
();
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
}
...
...
@@ -239,11 +240,11 @@ VbaDocumentBase::setSaved( sal_Bool bSave ) throw (uno::RuntimeException)
{
xModifiable
->
setModified
(
!
bSave
);
}
catch
(
lang
::
DisposedException
&
)
catch
(
const
lang
::
DisposedException
&
)
{
// impossibility to set the modified state on disposed document should not trigger an error
}
catch
(
beans
::
PropertyVetoException
&
)
catch
(
const
beans
::
PropertyVetoException
&
)
{
uno
::
Any
aCaught
(
::
cppu
::
getCaughtException
()
);
throw
lang
::
WrappedTargetRuntimeException
(
...
...
@@ -289,7 +290,7 @@ VbaDocumentBase::getVBProject() throw (uno::RuntimeException)
mxVBProject
=
xServiceManager
->
createInstanceWithArgumentsAndContext
(
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"ooo.vba.vbide.VBProject"
)
),
aArgs
,
mxContext
);
}
catch
(
uno
::
Exception
&
)
catch
(
const
uno
::
Exception
&
)
{
}
return
uno
::
Any
(
mxVBProject
);
...
...
vbahelper/source/vbahelper/vbashapes.cxx
Dosyayı görüntüle @
75705b69
...
...
@@ -220,7 +220,7 @@ ScVbaShapes::SelectAll() throw (uno::RuntimeException)
// viewuno.cxx ScTabViewObj::select will throw IllegalArgumentException
// if one of the shapes is no 'markable' e.g. a button
// the method still works
catch
(
lang
::
IllegalArgumentException
&
)
catch
(
const
lang
::
IllegalArgumentException
&
)
{
}
}
...
...
@@ -463,7 +463,7 @@ ScVbaShapes::setShape_NameProperty( uno::Reference< css::drawing::XShape > xShap
{
xPropertySet
->
setPropertyValue
(
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Name"
)),
uno
::
makeAny
(
sName
)
);
}
catch
(
script
::
BasicErrorException
e
)
catch
(
const
script
::
BasicErrorException
&
)
{
}
}
...
...
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