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
8536c279
Kaydet (Commit)
8536c279
authored
Eki 20, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1326431 Dereference null return value
Change-Id: Ib85b3e03d2a9ce6339cd2496e33cc09cff2b9952
üst
86d27536
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
LocalOfficeWindow.java
bean/com/sun/star/comp/beans/LocalOfficeWindow.java
+13
-21
No files found.
bean/com/sun/star/comp/beans/LocalOfficeWindow.java
Dosyayı görüntüle @
8536c279
...
...
@@ -89,28 +89,20 @@ public class LocalOfficeWindow
}
/**
* Returns an AWT toolkit.
*/
private
XToolkit
queryAWTToolkit
()
throws
com
.
sun
.
star
.
uno
.
Exception
{
// Create a UNO toolkit.
XMultiComponentFactory
compfactory
;
XComponentContext
xContext
=
mConnection
.
getComponentContext
();
if
(
xContext
!=
null
)
{
compfactory
=
mConnection
.
getComponentContext
().
getServiceManager
();
XMultiServiceFactory
factory
;
factory
=
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
compfactory
);
Object
object
=
factory
.
createInstance
(
"com.sun.star.awt.Toolkit"
);
return
UnoRuntime
.
queryInterface
(
XToolkit
.
class
,
object
);
}
else
return
null
;
}
* Returns an AWT toolkit.
*/
private
XToolkit
queryAWTToolkit
()
throws
com
.
sun
.
star
.
uno
.
Exception
{
// Create a UNO toolkit.
XComponentContext
xContext
=
mConnection
.
getComponentContext
();
XMultiComponentFactory
compfactory
=
mConnection
.
getComponentContext
().
getServiceManager
();
XMultiServiceFactory
factory
=
UnoRuntime
.
queryInterface
(
XMultiServiceFactory
.
class
,
compfactory
);
Object
object
=
factory
.
createInstance
(
"com.sun.star.awt.Toolkit"
);
return
UnoRuntime
.
queryInterface
(
XToolkit
.
class
,
object
);
}
/// called when system parent is available, reparents the bean window
/// called when system parent is available, reparents the bean window
private
synchronized
void
aquireSystemWindow
()
{
if
(
!
bPeer
)
...
...
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