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
705b6b61
Kaydet (Commit)
705b6b61
authored
Kas 06, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#983989 Uncaught exception
Change-Id: I7508ee67a10b43686600b41dd58c1a8a5aa90c51
üst
ffc3b11d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
30 deletions
+41
-30
cmis_content.cxx
ucb/source/ucp/cmis/cmis_content.cxx
+41
-30
No files found.
ucb/source/ucp/cmis/cmis_content.cxx
Dosyayı görüntüle @
705b6b61
...
...
@@ -1854,40 +1854,51 @@ namespace cmis
uno
::
Sequence
<
uno
::
Type
>
SAL_CALL
Content
::
getTypes
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
isFolder
(
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
()
)
)
{
static
cppu
::
OTypeCollection
aFolderCollection
(
CPPU_TYPE_REF
(
lang
::
XTypeProvider
),
CPPU_TYPE_REF
(
lang
::
XServiceInfo
),
CPPU_TYPE_REF
(
lang
::
XComponent
),
CPPU_TYPE_REF
(
ucb
::
XContent
),
CPPU_TYPE_REF
(
ucb
::
XCommandProcessor
),
CPPU_TYPE_REF
(
beans
::
XPropertiesChangeNotifier
),
CPPU_TYPE_REF
(
ucb
::
XCommandInfoChangeNotifier
),
CPPU_TYPE_REF
(
beans
::
XPropertyContainer
),
CPPU_TYPE_REF
(
beans
::
XPropertySetInfoChangeNotifier
),
CPPU_TYPE_REF
(
container
::
XChild
),
CPPU_TYPE_REF
(
ucb
::
XContentCreator
)
);
return
aFolderCollection
.
getTypes
();
try
{
if
(
isFolder
(
uno
::
Reference
<
ucb
::
XCommandEnvironment
>
()
)
)
{
static
cppu
::
OTypeCollection
aFolderCollection
(
CPPU_TYPE_REF
(
lang
::
XTypeProvider
),
CPPU_TYPE_REF
(
lang
::
XServiceInfo
),
CPPU_TYPE_REF
(
lang
::
XComponent
),
CPPU_TYPE_REF
(
ucb
::
XContent
),
CPPU_TYPE_REF
(
ucb
::
XCommandProcessor
),
CPPU_TYPE_REF
(
beans
::
XPropertiesChangeNotifier
),
CPPU_TYPE_REF
(
ucb
::
XCommandInfoChangeNotifier
),
CPPU_TYPE_REF
(
beans
::
XPropertyContainer
),
CPPU_TYPE_REF
(
beans
::
XPropertySetInfoChangeNotifier
),
CPPU_TYPE_REF
(
container
::
XChild
),
CPPU_TYPE_REF
(
ucb
::
XContentCreator
)
);
return
aFolderCollection
.
getTypes
();
}
}
else
catch
(
const
uno
::
RuntimeException
&
)
{
static
cppu
::
OTypeCollection
aFileCollection
(
CPPU_TYPE_REF
(
lang
::
XTypeProvider
),
CPPU_TYPE_REF
(
lang
::
XServiceInfo
),
CPPU_TYPE_REF
(
lang
::
XComponent
),
CPPU_TYPE_REF
(
ucb
::
XContent
),
CPPU_TYPE_REF
(
ucb
::
XCommandProcessor
),
CPPU_TYPE_REF
(
beans
::
XPropertiesChangeNotifier
),
CPPU_TYPE_REF
(
ucb
::
XCommandInfoChangeNotifier
),
CPPU_TYPE_REF
(
beans
::
XPropertyContainer
),
CPPU_TYPE_REF
(
beans
::
XPropertySetInfoChangeNotifier
),
CPPU_TYPE_REF
(
container
::
XChild
)
);
return
aFileCollection
.
getTypes
();
throw
;
}
catch
(
const
uno
::
Exception
&
e
)
{
uno
::
Any
a
(
cppu
::
getCaughtException
());
throw
lang
::
WrappedTargetRuntimeException
(
"wrapped Exception "
+
e
.
Message
,
uno
::
Reference
<
uno
::
XInterface
>
(),
a
);
}
}
static
cppu
::
OTypeCollection
aFileCollection
(
CPPU_TYPE_REF
(
lang
::
XTypeProvider
),
CPPU_TYPE_REF
(
lang
::
XServiceInfo
),
CPPU_TYPE_REF
(
lang
::
XComponent
),
CPPU_TYPE_REF
(
ucb
::
XContent
),
CPPU_TYPE_REF
(
ucb
::
XCommandProcessor
),
CPPU_TYPE_REF
(
beans
::
XPropertiesChangeNotifier
),
CPPU_TYPE_REF
(
ucb
::
XCommandInfoChangeNotifier
),
CPPU_TYPE_REF
(
beans
::
XPropertyContainer
),
CPPU_TYPE_REF
(
beans
::
XPropertySetInfoChangeNotifier
),
CPPU_TYPE_REF
(
container
::
XChild
)
);
return
aFileCollection
.
getTypes
();
}
uno
::
Sequence
<
ucb
::
ContentInfo
>
Content
::
queryCreatableContentsInfo
(
const
uno
::
Reference
<
ucb
::
XCommandEnvironment
>&
xEnv
)
...
...
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