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
b3443e16
Kaydet (Commit)
b3443e16
authored
Mar 22, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
No need for a static Security instance here
Change-Id: I03f0042bd9de07b8d254118d1b4a0a016e217476
üst
59a89dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+3
-4
No files found.
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
b3443e16
...
...
@@ -243,7 +243,6 @@ bool addArgument(OStringBuffer &rArguments, char prefix,
}
rtl
::
Reference
<
OfficeIPCThread
>
OfficeIPCThread
::
pGlobalOfficeIPCThread
;
namespace
{
struct
Security
:
public
rtl
::
Static
<
osl
::
Security
,
Security
>
{};
}
// Turns a string in aMsg such as file:///home/foo/.libreoffice/3
// Into a hex string of well known length ff132a86...
...
...
@@ -526,15 +525,15 @@ OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread()
do
{
osl
::
Security
&
rSecurity
=
Security
::
get
()
;
osl
::
Security
security
;
// Try to create pipe
if
(
pThread
->
maPipe
.
create
(
aPipeIdent
.
getStr
(),
osl_Pipe_CREATE
,
rS
ecurity
))
if
(
pThread
->
maPipe
.
create
(
aPipeIdent
.
getStr
(),
osl_Pipe_CREATE
,
s
ecurity
))
{
// Pipe created
nPipeMode
=
PIPEMODE_CREATED
;
}
else
if
(
pThread
->
maPipe
.
create
(
aPipeIdent
.
getStr
(),
osl_Pipe_OPEN
,
rS
ecurity
))
// Creation not successful, now we try to connect
else
if
(
pThread
->
maPipe
.
create
(
aPipeIdent
.
getStr
(),
osl_Pipe_OPEN
,
s
ecurity
))
// Creation not successful, now we try to connect
{
osl
::
StreamPipe
aStreamPipe
(
pThread
->
maPipe
.
getHandle
());
if
(
readStringFromPipe
(
aStreamPipe
)
==
SEND_ARGUMENTS
)
...
...
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