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
7acb634f
Kaydet (Commit)
7acb634f
authored
Eki 28, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#85081 terminate if can't load kde addressbook
Change-Id: I3b1b78127d7d4080a23c0ac9f7d37706197de62c
üst
aa0499ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
mdrivermanager.cxx
connectivity/source/manager/mdrivermanager.cxx
+20
-6
No files found.
connectivity/source/manager/mdrivermanager.cxx
Dosyayı görüntüle @
7acb634f
...
...
@@ -119,12 +119,26 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
const
DriverAccess
&
operator
()(
const
DriverAccess
&
_rDescriptor
)
const
{
if
(
!
_rDescriptor
.
xDriver
.
is
()
)
// we did not load this driver, yet
if
(
_rDescriptor
.
xComponentFactory
.
is
()
)
// we have a factory for it
const_cast
<
DriverAccess
&
>
(
_rDescriptor
).
xDriver
.
set
(
_rDescriptor
.
xComponentFactory
->
createInstanceWithContext
(
mxContext
),
css
::
uno
::
UNO_QUERY
);
// we did not load this driver, yet
if
(
!
_rDescriptor
.
xDriver
.
is
())
{
// we have a factory for it
if
(
_rDescriptor
.
xComponentFactory
.
is
())
{
DriverAccess
&
rDesc
=
const_cast
<
DriverAccess
&>
(
_rDescriptor
);
try
{
//load driver
rDesc
.
xDriver
.
set
(
rDesc
.
xComponentFactory
->
createInstanceWithContext
(
mxContext
),
css
::
uno
::
UNO_QUERY
);
}
catch
(
const
Exception
&
)
{
//failure, abandon driver
rDesc
.
xComponentFactory
.
clear
();
}
}
}
return
_rDescriptor
;
}
...
...
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