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
1656b722
Kaydet (Commit)
1656b722
authored
Agu 31, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant: OUStringBuffer: appendAscii -> append
Change-Id: I3adb8d5664ecd8fafccc7bae0656f15100484422
üst
aa80dcf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
26 deletions
+26
-26
acc_socket.cxx
io/source/acceptor/acc_socket.cxx
+10
-10
ctr_socket.cxx
io/source/connector/ctr_socket.cxx
+4
-4
omark.cxx
io/source/stm/omark.cxx
+12
-12
No files found.
io/source/acceptor/acc_socket.cxx
Dosyayı görüntüle @
1656b722
...
@@ -176,14 +176,14 @@ namespace io_acceptor {
...
@@ -176,14 +176,14 @@ namespace io_acceptor {
void
SocketConnection
::
completeConnectionString
()
void
SocketConnection
::
completeConnectionString
()
{
{
OUStringBuffer
buf
(
256
);
OUStringBuffer
buf
(
256
);
buf
.
append
Ascii
(
",peerPort="
);
buf
.
append
(
",peerPort="
);
buf
.
append
(
(
sal_Int32
)
m_socket
.
getPeerPort
()
);
buf
.
append
(
(
sal_Int32
)
m_socket
.
getPeerPort
()
);
buf
.
append
Ascii
(
",peerHost="
);
buf
.
append
(
",peerHost="
);
buf
.
append
(
m_socket
.
getPeerHost
(
)
);
buf
.
append
(
m_socket
.
getPeerHost
(
)
);
buf
.
append
Ascii
(
",localPort="
);
buf
.
append
(
",localPort="
);
buf
.
append
(
(
sal_Int32
)
m_socket
.
getLocalPort
()
);
buf
.
append
(
(
sal_Int32
)
m_socket
.
getLocalPort
()
);
buf
.
append
Ascii
(
",localHost="
);
buf
.
append
(
",localHost="
);
buf
.
append
(
m_socket
.
getLocalHost
()
);
buf
.
append
(
m_socket
.
getLocalHost
()
);
m_sDescription
+=
buf
.
makeStringAndClear
();
m_sDescription
+=
buf
.
makeStringAndClear
();
...
@@ -332,14 +332,14 @@ namespace io_acceptor {
...
@@ -332,14 +332,14 @@ namespace io_acceptor {
if
(
!
m_addr
.
setPort
(
m_nPort
)
)
if
(
!
m_addr
.
setPort
(
m_nPort
)
)
{
{
OUStringBuffer
message
(
128
);
OUStringBuffer
message
(
128
);
message
.
append
Ascii
(
"acc_socket.cxx:SocketAcceptor::init - error - invalid tcp/ip port "
);
message
.
append
(
"acc_socket.cxx:SocketAcceptor::init - error - invalid tcp/ip port "
);
message
.
append
(
(
sal_Int32
)
m_nPort
);
message
.
append
(
(
sal_Int32
)
m_nPort
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
}
}
if
(
!
m_addr
.
setHostname
(
m_sSocketName
.
pData
)
)
if
(
!
m_addr
.
setHostname
(
m_sSocketName
.
pData
)
)
{
{
OUStringBuffer
message
(
128
);
OUStringBuffer
message
(
128
);
message
.
append
Ascii
(
"acc_socket.cxx:SocketAcceptor::init - error - invalid host "
);
message
.
append
(
"acc_socket.cxx:SocketAcceptor::init - error - invalid host "
);
message
.
append
(
m_sSocketName
);
message
.
append
(
m_sSocketName
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
}
}
...
@@ -348,16 +348,16 @@ namespace io_acceptor {
...
@@ -348,16 +348,16 @@ namespace io_acceptor {
if
(
!
m_socket
.
bind
(
m_addr
)
)
if
(
!
m_socket
.
bind
(
m_addr
)
)
{
{
OUStringBuffer
message
(
128
);
OUStringBuffer
message
(
128
);
message
.
append
Ascii
(
"acc_socket.cxx:SocketAcceptor::init - error - couldn't bind on "
);
message
.
append
(
"acc_socket.cxx:SocketAcceptor::init - error - couldn't bind on "
);
message
.
append
(
m_sSocketName
).
append
Ascii
(
":"
).
append
((
sal_Int32
)
m_nPort
);
message
.
append
(
m_sSocketName
).
append
(
":"
).
append
((
sal_Int32
)
m_nPort
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
}
}
if
(
!
m_socket
.
listen
()
)
if
(
!
m_socket
.
listen
()
)
{
{
OUStringBuffer
message
(
128
);
OUStringBuffer
message
(
128
);
message
.
append
Ascii
(
"acc_socket.cxx:SocketAcceptor::init - error - can't listen on "
);
message
.
append
(
"acc_socket.cxx:SocketAcceptor::init - error - can't listen on "
);
message
.
append
(
m_sSocketName
).
append
Ascii
(
":"
).
append
(
(
sal_Int32
)
m_nPort
);
message
.
append
(
m_sSocketName
).
append
(
":"
).
append
(
(
sal_Int32
)
m_nPort
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
throw
ConnectionSetupException
(
message
.
makeStringAndClear
()
);
}
}
}
}
...
...
io/source/connector/ctr_socket.cxx
Dosyayı görüntüle @
1656b722
...
@@ -101,14 +101,14 @@ namespace stoc_connector {
...
@@ -101,14 +101,14 @@ namespace stoc_connector {
nPort
=
m_socket
.
getPeerPort
();
nPort
=
m_socket
.
getPeerPort
();
OUStringBuffer
buf
(
256
);
OUStringBuffer
buf
(
256
);
buf
.
append
Ascii
(
",peerPort="
);
buf
.
append
(
",peerPort="
);
buf
.
append
(
(
sal_Int32
)
nPort
);
buf
.
append
(
(
sal_Int32
)
nPort
);
buf
.
append
Ascii
(
",peerHost="
);
buf
.
append
(
",peerHost="
);
buf
.
append
(
m_socket
.
getPeerHost
()
);
buf
.
append
(
m_socket
.
getPeerHost
()
);
buf
.
append
Ascii
(
",localPort="
);
buf
.
append
(
",localPort="
);
buf
.
append
(
(
sal_Int32
)
nPort
);
buf
.
append
(
(
sal_Int32
)
nPort
);
buf
.
append
Ascii
(
",localHost="
);
buf
.
append
(
",localHost="
);
buf
.
append
(
m_socket
.
getLocalHost
(
)
);
buf
.
append
(
m_socket
.
getLocalHost
(
)
);
m_sDescription
+=
buf
.
makeStringAndClear
();
m_sDescription
+=
buf
.
makeStringAndClear
();
...
...
io/source/stm/omark.cxx
Dosyayı görüntüle @
1656b722
...
@@ -266,9 +266,9 @@ void OMarkableOutputStream::deleteMark(sal_Int32 Mark)
...
@@ -266,9 +266,9 @@ void OMarkableOutputStream::deleteMark(sal_Int32 Mark)
if
(
ii
==
m_mapMarks
.
end
()
)
{
if
(
ii
==
m_mapMarks
.
end
()
)
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableOutputStream::deleteMark unknown mark ("
);
buf
.
append
(
"MarkableOutputStream::deleteMark unknown mark ("
);
buf
.
append
(
Mark
);
buf
.
append
(
Mark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
else
{
else
{
...
@@ -287,9 +287,9 @@ void OMarkableOutputStream::jumpToMark(sal_Int32 nMark)
...
@@ -287,9 +287,9 @@ void OMarkableOutputStream::jumpToMark(sal_Int32 nMark)
if
(
ii
==
m_mapMarks
.
end
()
)
{
if
(
ii
==
m_mapMarks
.
end
()
)
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableOutputStream::jumpToMark unknown mark ("
);
buf
.
append
(
"MarkableOutputStream::jumpToMark unknown mark ("
);
buf
.
append
(
nMark
);
buf
.
append
(
nMark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
else
{
else
{
...
@@ -318,9 +318,9 @@ sal_Int32 OMarkableOutputStream::offsetToMark(sal_Int32 nMark)
...
@@ -318,9 +318,9 @@ sal_Int32 OMarkableOutputStream::offsetToMark(sal_Int32 nMark)
if
(
ii
==
m_mapMarks
.
end
()
)
if
(
ii
==
m_mapMarks
.
end
()
)
{
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableOutputStream::offsetToMark unknown mark ("
);
buf
.
append
(
"MarkableOutputStream::offsetToMark unknown mark ("
);
buf
.
append
(
nMark
);
buf
.
append
(
nMark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
return
m_nCurrentPos
-
(
*
ii
).
second
;
return
m_nCurrentPos
-
(
*
ii
).
second
;
...
@@ -779,9 +779,9 @@ void OMarkableInputStream::deleteMark(sal_Int32 Mark) throw (IOException,
...
@@ -779,9 +779,9 @@ void OMarkableInputStream::deleteMark(sal_Int32 Mark) throw (IOException,
if
(
ii
==
m_mapMarks
.
end
()
)
{
if
(
ii
==
m_mapMarks
.
end
()
)
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableInputStream::deleteMark unknown mark ("
);
buf
.
append
(
"MarkableInputStream::deleteMark unknown mark ("
);
buf
.
append
(
Mark
);
buf
.
append
(
Mark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
else
{
else
{
...
@@ -801,9 +801,9 @@ void OMarkableInputStream::jumpToMark(sal_Int32 nMark)
...
@@ -801,9 +801,9 @@ void OMarkableInputStream::jumpToMark(sal_Int32 nMark)
if
(
ii
==
m_mapMarks
.
end
()
)
if
(
ii
==
m_mapMarks
.
end
()
)
{
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableInputStream::jumpToMark unknown mark ("
);
buf
.
append
(
"MarkableInputStream::jumpToMark unknown mark ("
);
buf
.
append
(
nMark
);
buf
.
append
(
nMark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
else
else
...
@@ -830,9 +830,9 @@ sal_Int32 OMarkableInputStream::offsetToMark(sal_Int32 nMark)
...
@@ -830,9 +830,9 @@ sal_Int32 OMarkableInputStream::offsetToMark(sal_Int32 nMark)
if
(
ii
==
m_mapMarks
.
end
()
)
if
(
ii
==
m_mapMarks
.
end
()
)
{
{
OUStringBuffer
buf
(
128
);
OUStringBuffer
buf
(
128
);
buf
.
append
Ascii
(
"MarkableInputStream::offsetToMark unknown mark ("
);
buf
.
append
(
"MarkableInputStream::offsetToMark unknown mark ("
);
buf
.
append
(
nMark
);
buf
.
append
(
nMark
);
buf
.
append
Ascii
(
")"
);
buf
.
append
(
")"
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
throw
IllegalArgumentException
(
buf
.
makeStringAndClear
(),
*
this
,
0
);
}
}
return
m_nCurrentPos
-
(
*
ii
).
second
;
return
m_nCurrentPos
-
(
*
ii
).
second
;
...
...
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