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
67d1c938
Kaydet (Commit)
67d1c938
authored
Mar 28, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
catch exceptions by const reference
üst
742925d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
querycontroller.cxx
dbaccess/source/ui/querydesign/querycontroller.cxx
+8
-8
No files found.
dbaccess/source/ui/querydesign/querycontroller.cxx
Dosyayı görüntüle @
67d1c938
...
@@ -671,7 +671,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
...
@@ -671,7 +671,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
}
}
}
}
}
}
catch
(
const
SQLException
&
e
)
catch
(
const
SQLException
&
)
{
{
aError
=
::
cppu
::
getCaughtException
();
aError
=
::
cppu
::
getCaughtException
();
}
}
...
@@ -725,7 +725,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
...
@@ -725,7 +725,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
{
{
xCloseFrame
->
close
(
sal_True
);
xCloseFrame
->
close
(
sal_True
);
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
OSL_FAIL
(
"OQueryController::Execute(SID_DB_QUERY_PREVIEW): *nobody* is expected to veto closing the preview frame!"
);
OSL_FAIL
(
"OQueryController::Execute(SID_DB_QUERY_PREVIEW): *nobody* is expected to veto closing the preview frame!"
);
}
}
...
@@ -733,7 +733,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
...
@@ -733,7 +733,7 @@ void OQueryController::Execute(sal_uInt16 _nId, const Sequence< PropertyValue >&
else
else
Execute
(
ID_BROWSER_QUERY_EXECUTE
,
Sequence
<
PropertyValue
>
());
Execute
(
ID_BROWSER_QUERY_EXECUTE
,
Sequence
<
PropertyValue
>
());
}
}
catch
(
Exception
&
)
catch
(
const
Exception
&
)
{
{
}
}
break
;
break
;
...
@@ -1050,7 +1050,7 @@ void OQueryController::impl_initialize()
...
@@ -1050,7 +1050,7 @@ void OQueryController::impl_initialize()
setModified
(
sal_False
);
setModified
(
sal_False
);
}
}
catch
(
SQLException
&
e
)
catch
(
const
SQLException
&
e
)
{
{
DBG_UNHANDLED_EXCEPTION
();
DBG_UNHANDLED_EXCEPTION
();
// we caught an exception so we switch to text only mode
// we caught an exception so we switch to text only mode
...
@@ -1101,7 +1101,7 @@ void OQueryController::setQueryComposer()
...
@@ -1101,7 +1101,7 @@ void OQueryController::setQueryComposer()
m_xComposer
=
xFactory
->
createQueryComposer
();
m_xComposer
=
xFactory
->
createQueryComposer
();
getContainer
()
->
setStatement
(
m_sStatement
);
getContainer
()
->
setStatement
(
m_sStatement
);
}
}
catch
(
Exception
&
)
catch
(
const
Exception
&
)
{
{
m_xComposer
=
NULL
;
m_xComposer
=
NULL
;
}
}
...
@@ -1560,13 +1560,13 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs)
...
@@ -1560,13 +1560,13 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs)
bSuccess
=
true
;
bSuccess
=
true
;
}
}
catch
(
const
SQLException
&
)
catch
(
const
SQLException
&
)
{
{
if
(
!
bNew
)
if
(
!
bNew
)
m_sName
=
sOriginalName
;
m_sName
=
sOriginalName
;
aInfo
=
SQLExceptionInfo
(
::
cppu
::
getCaughtException
()
);
aInfo
=
SQLExceptionInfo
(
::
cppu
::
getCaughtException
()
);
}
}
catch
(
Exception
&
)
catch
(
const
Exception
&
)
{
{
if
(
!
bNew
)
if
(
!
bNew
)
m_sName
=
sOriginalName
;
m_sName
=
sOriginalName
;
...
@@ -1611,7 +1611,7 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs)
...
@@ -1611,7 +1611,7 @@ bool OQueryController::doSaveAsDoc(sal_Bool _bSaveAs)
m_xComposer
->
setQuery
(
sTranslatedStmt
);
m_xComposer
->
setQuery
(
sTranslatedStmt
);
sTranslatedStmt
=
m_xComposer
->
getComposedQuery
();
sTranslatedStmt
=
m_xComposer
->
getComposedQuery
();
}
}
catch
(
SQLException
&
e
)
catch
(
const
SQLException
&
e
)
{
{
::
dbtools
::
SQLExceptionInfo
aInfo
(
e
);
::
dbtools
::
SQLExceptionInfo
aInfo
(
e
);
showError
(
aInfo
);
showError
(
aInfo
);
...
...
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