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
c9545816
Kaydet (Commit)
c9545816
authored
Eki 25, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
micro optimizations
üst
26c20675
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
+15
-15
acc_pipe.cxx
io/source/acceptor/acc_pipe.cxx
+4
-4
acceptor.cxx
io/source/acceptor/acceptor.cxx
+1
-1
connector.cxx
io/source/connector/connector.cxx
+6
-6
ctr_pipe.cxx
io/source/connector/ctr_pipe.cxx
+1
-1
omark.cxx
io/source/stm/omark.cxx
+1
-1
opump.cxx
io/source/stm/opump.cxx
+2
-2
No files found.
io/source/acceptor/acc_pipe.cxx
Dosyayı görüntüle @
c9545816
...
@@ -84,7 +84,7 @@ namespace io_acceptor
...
@@ -84,7 +84,7 @@ namespace io_acceptor
g_moduleCount
.
modCnt
.
acquire
(
&
g_moduleCount
.
modCnt
);
g_moduleCount
.
modCnt
.
acquire
(
&
g_moduleCount
.
modCnt
);
// make it unique
// make it unique
m_sDescription
+=
OUString
::
createFromAscii
(
",uniqueValue="
);
m_sDescription
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
",uniqueValue="
)
);
m_sDescription
+=
OUString
::
valueOf
(
m_sDescription
+=
OUString
::
valueOf
(
sal
::
static_int_cast
<
sal_Int64
>
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
...
@@ -167,7 +167,7 @@ namespace io_acceptor
...
@@ -167,7 +167,7 @@ namespace io_acceptor
m_pipe
=
Pipe
(
m_sPipeName
.
pData
,
osl_Pipe_CREATE
,
osl
::
Security
()
);
m_pipe
=
Pipe
(
m_sPipeName
.
pData
,
osl_Pipe_CREATE
,
osl
::
Security
()
);
if
(
!
m_pipe
.
is
()
)
if
(
!
m_pipe
.
is
()
)
{
{
OUString
error
=
OUString
::
createFromAscii
(
"io.acceptor: Couldn't setup pipe "
);
OUString
error
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"io.acceptor: Couldn't setup pipe "
)
);
error
+=
m_sPipeName
;
error
+=
m_sPipeName
;
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
()
);
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
()
);
}
}
...
@@ -182,7 +182,7 @@ namespace io_acceptor
...
@@ -182,7 +182,7 @@ namespace io_acceptor
}
}
if
(
!
pipe
.
is
()
)
if
(
!
pipe
.
is
()
)
{
{
OUString
error
=
OUString
::
createFromAscii
(
"io.acceptor: pipe already closed"
);
OUString
error
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"io.acceptor: pipe already closed"
)
);
error
+=
m_sPipeName
;
error
+=
m_sPipeName
;
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
()
);
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
()
);
}
}
...
@@ -202,7 +202,7 @@ namespace io_acceptor
...
@@ -202,7 +202,7 @@ namespace io_acceptor
}
}
else
else
{
{
OUString
error
=
OUString
::
createFromAscii
(
"io.acceptor: Couldn't setup pipe "
);
OUString
error
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"io.acceptor: Couldn't setup pipe "
)
);
error
+=
m_sPipeName
;
error
+=
m_sPipeName
;
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
());
throw
ConnectionSetupException
(
error
,
Reference
<
XInterface
>
());
}
}
...
...
io/source/acceptor/acceptor.cxx
Dosyayı görüntüle @
c9545816
...
@@ -308,7 +308,7 @@ namespace io_acceptor
...
@@ -308,7 +308,7 @@ namespace io_acceptor
if
(
!
pNames
)
if
(
!
pNames
)
{
{
static
Sequence
<
OUString
>
seqNames
(
1
);
static
Sequence
<
OUString
>
seqNames
(
1
);
seqNames
.
getArray
()[
0
]
=
OUString
::
createFromAscii
(
SERVICE_NAME
);
seqNames
.
getArray
()[
0
]
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SERVICE_NAME
)
);
pNames
=
&
seqNames
;
pNames
=
&
seqNames
;
}
}
}
}
...
...
io/source/connector/connector.cxx
Dosyayı görüntüle @
c9545816
...
@@ -119,11 +119,11 @@ namespace stoc_connector
...
@@ -119,11 +119,11 @@ namespace stoc_connector
}
}
else
else
{
{
OUString
sMessage
=
OUString
::
createFromAscii
(
"Connector : couldn't connect to pipe "
);
OUString
sMessage
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Connector : couldn't connect to pipe "
)
);
sMessage
+=
aName
;
sMessage
+=
aName
;
sMessage
+=
OUString
::
createFromAscii
(
"("
);
sMessage
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"("
)
);
sMessage
+=
OUString
::
valueOf
(
(
sal_Int32
)
pConn
->
m_pipe
.
getError
()
);
sMessage
+=
OUString
::
valueOf
(
(
sal_Int32
)
pConn
->
m_pipe
.
getError
()
);
sMessage
+=
OUString
::
createFromAscii
(
")"
);
sMessage
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
")"
)
);
delete
pConn
;
delete
pConn
;
throw
NoConnectException
(
sMessage
,
Reference
<
XInterface
>
()
);
throw
NoConnectException
(
sMessage
,
Reference
<
XInterface
>
()
);
}
}
...
@@ -153,10 +153,10 @@ namespace stoc_connector
...
@@ -153,10 +153,10 @@ namespace stoc_connector
SocketAddr
AddrTarget
(
aHost
.
pData
,
nPort
);
SocketAddr
AddrTarget
(
aHost
.
pData
,
nPort
);
if
(
pConn
->
m_socket
.
connect
(
AddrTarget
)
!=
osl_Socket_Ok
)
if
(
pConn
->
m_socket
.
connect
(
AddrTarget
)
!=
osl_Socket_Ok
)
{
{
OUString
sMessage
=
OUString
::
createFromAscii
(
"Connector : couldn't connect to socket ("
);
OUString
sMessage
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"Connector : couldn't connect to socket ("
)
);
OUString
sError
=
pConn
->
m_socket
.
getErrorAsString
();
OUString
sError
=
pConn
->
m_socket
.
getErrorAsString
();
sMessage
+=
sError
;
sMessage
+=
sError
;
sMessage
+=
OUString
::
createFromAscii
(
")"
);
sMessage
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
")"
)
);
delete
pConn
;
delete
pConn
;
throw
NoConnectException
(
sMessage
,
Reference
<
XInterface
>
()
);
throw
NoConnectException
(
sMessage
,
Reference
<
XInterface
>
()
);
}
}
...
@@ -211,7 +211,7 @@ namespace stoc_connector
...
@@ -211,7 +211,7 @@ namespace stoc_connector
if
(
!
pNames
)
if
(
!
pNames
)
{
{
static
Sequence
<
OUString
>
seqNames
(
1
);
static
Sequence
<
OUString
>
seqNames
(
1
);
seqNames
.
getArray
()[
0
]
=
OUString
::
createFromAscii
(
SERVICE_NAME
);
seqNames
.
getArray
()[
0
]
=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
SERVICE_NAME
)
);
pNames
=
&
seqNames
;
pNames
=
&
seqNames
;
}
}
}
}
...
...
io/source/connector/ctr_pipe.cxx
Dosyayı görüntüle @
c9545816
...
@@ -46,7 +46,7 @@ namespace stoc_connector {
...
@@ -46,7 +46,7 @@ namespace stoc_connector {
{
{
g_moduleCount
.
modCnt
.
acquire
(
&
g_moduleCount
.
modCnt
);
g_moduleCount
.
modCnt
.
acquire
(
&
g_moduleCount
.
modCnt
);
// make it unique
// make it unique
m_sDescription
+=
OUString
::
createFromAscii
(
",uniqueValue="
);
m_sDescription
+=
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
",uniqueValue="
)
);
m_sDescription
+=
OUString
::
valueOf
(
m_sDescription
+=
OUString
::
valueOf
(
sal
::
static_int_cast
<
sal_Int64
>
(
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
reinterpret_cast
<
sal_IntPtr
>
(
&
m_pipe
)),
...
...
io/source/stm/omark.cxx
Dosyayı görüntüle @
c9545816
...
@@ -730,7 +730,7 @@ void OMarkableInputStream::skipBytes(sal_Int32 nBytesToSkip)
...
@@ -730,7 +730,7 @@ void OMarkableInputStream::skipBytes(sal_Int32 nBytesToSkip)
{
{
if
(
nBytesToSkip
<
0
)
if
(
nBytesToSkip
<
0
)
throw
BufferSizeExceededException
(
throw
BufferSizeExceededException
(
::
rtl
::
OUString
::
createFromAscii
(
"precondition not met: XInputStream::skipBytes: non-negative integer required!"
),
::
rtl
::
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"precondition not met: XInputStream::skipBytes: non-negative integer required!"
)
),
*
this
*
this
);
);
...
...
io/source/stm/opump.cxx
Dosyayı görüntüle @
c9545816
...
@@ -280,7 +280,7 @@ void Pump::run()
...
@@ -280,7 +280,7 @@ void Pump::run()
if
(
!
rInput
.
is
()
)
if
(
!
rInput
.
is
()
)
{
{
NotConnectedException
exception
(
NotConnectedException
exception
(
OUString
::
createFromAscii
(
"no input stream set"
)
,
Reference
<
XInterface
>
((
OWeakObject
*
)
this
)
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"no input stream set"
)
)
,
Reference
<
XInterface
>
((
OWeakObject
*
)
this
)
);
throw
exception
;
throw
exception
;
}
}
Sequence
<
sal_Int8
>
aData
;
Sequence
<
sal_Int8
>
aData
;
...
@@ -289,7 +289,7 @@ void Pump::run()
...
@@ -289,7 +289,7 @@ void Pump::run()
if
(
!
rOutput
.
is
()
)
if
(
!
rOutput
.
is
()
)
{
{
NotConnectedException
exception
(
NotConnectedException
exception
(
OUString
::
createFromAscii
(
"no output stream set"
)
,
Reference
<
XInterface
>
(
(
OWeakObject
*
)
this
)
);
OUString
(
RTL_CONSTASCII_USTRINGPARAM
(
"no output stream set"
)
)
,
Reference
<
XInterface
>
(
(
OWeakObject
*
)
this
)
);
throw
exception
;
throw
exception
;
}
}
rOutput
->
writeBytes
(
aData
);
rOutput
->
writeBytes
(
aData
);
...
...
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