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
0f3ccde7
Kaydet (Commit)
0f3ccde7
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: I83f45260158f5282b857458046d2e324be85a7b5
üst
33068078
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
41 deletions
+41
-41
helper.cxx
vcl/generic/fontmanager/helper.cxx
+7
-7
genprnpsp.cxx
vcl/generic/print/genprnpsp.cxx
+1
-1
printerjob.cxx
vcl/generic/print/printerjob.cxx
+1
-1
cupsmgr.cxx
vcl/unx/generic/printer/cupsmgr.cxx
+1
-1
UnxCommandThread.cxx
vcl/unx/kde/UnxCommandThread.cxx
+1
-1
UnxFilePicker.cxx
vcl/unx/kde/UnxFilePicker.cxx
+29
-29
x11sys.cxx
vcl/unx/x11/x11sys.cxx
+1
-1
No files found.
vcl/generic/fontmanager/helper.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -119,7 +119,7 @@ void psp::getPrinterPathList( std::list< OUString >& rPathList, const char* pSub
aPathBuffer
.
append
(
getOfficePath
(
psp
::
InstallationRootPath
)
);
if
(
!
aPathBuffer
.
isEmpty
()
)
{
aPathBuffer
.
append
Ascii
(
"/"
LIBO_SHARE_FOLDER
"/psprint"
);
aPathBuffer
.
append
(
"/"
LIBO_SHARE_FOLDER
"/psprint"
);
if
(
pSubDir
)
{
aPathBuffer
.
append
(
'/'
);
...
...
@@ -131,7 +131,7 @@ void psp::getPrinterPathList( std::list< OUString >& rPathList, const char* pSub
aPathBuffer
.
append
(
getOfficePath
(
psp
::
UserPath
)
);
if
(
!
aPathBuffer
.
isEmpty
()
)
{
aPathBuffer
.
append
Ascii
(
"/user/psprint"
);
aPathBuffer
.
append
(
"/user/psprint"
);
if
(
pSubDir
)
{
aPathBuffer
.
append
(
'/'
);
...
...
@@ -201,7 +201,7 @@ OUString psp::getFontPath()
// #i53530# Path from CustomDataUrl will completely
// replace net and user paths if the path exists
aPathBuffer
.
append
(
aConfigPath
);
aPathBuffer
.
append
Ascii
(
"/"
LIBO_SHARE_FOLDER
"/fonts"
);
aPathBuffer
.
append
(
"/"
LIBO_SHARE_FOLDER
"/fonts"
);
// check existence of config path
struct
stat
aStat
;
if
(
0
!=
stat
(
OUStringToOString
(
aPathBuffer
.
makeStringAndClear
(),
osl_getThreadTextEncoding
()
).
getStr
(),
&
aStat
)
...
...
@@ -210,7 +210,7 @@ OUString psp::getFontPath()
else
{
aPathBuffer
.
append
(
aConfigPath
);
aPathBuffer
.
append
Ascii
(
"/"
LIBO_SHARE_FOLDER
"/fonts"
);
aPathBuffer
.
append
(
"/"
LIBO_SHARE_FOLDER
"/fonts"
);
}
}
if
(
aConfigPath
.
isEmpty
()
)
...
...
@@ -218,14 +218,14 @@ OUString psp::getFontPath()
if
(
!
aInstallationRootPath
.
isEmpty
()
)
{
aPathBuffer
.
append
(
aInstallationRootPath
);
aPathBuffer
.
append
Ascii
(
"/"
LIBO_SHARE_FOLDER
"/fonts/truetype;"
);
aPathBuffer
.
append
(
"/"
LIBO_SHARE_FOLDER
"/fonts/truetype;"
);
aPathBuffer
.
append
(
aInstallationRootPath
);
aPathBuffer
.
append
Ascii
(
"/"
LIBO_SHARE_FOLDER
"/fonts/type1;"
);
aPathBuffer
.
append
(
"/"
LIBO_SHARE_FOLDER
"/fonts/type1;"
);
}
if
(
!
aUserPath
.
isEmpty
()
)
{
aPathBuffer
.
append
(
aUserPath
);
aPathBuffer
.
append
Ascii
(
"/user/fonts"
);
aPathBuffer
.
append
(
"/user/fonts"
);
}
}
...
...
vcl/generic/print/genprnpsp.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -919,7 +919,7 @@ bool PspSalPrinter::StartJob(
OUStringBuffer
aFileName
(
getPdfDir
(
rInfo
)
);
aFileName
.
append
(
'/'
);
aFileName
.
append
(
rJobName
);
aFileName
.
append
Ascii
(
".pdf"
);
aFileName
.
append
(
".pdf"
);
m_aFileName
=
aFileName
.
makeStringAndClear
();
}
break
;
...
...
vcl/generic/print/printerjob.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -238,7 +238,7 @@ createSpoolDir ()
{
OUStringBuffer
aDir
(
aTmpDir
.
getLength
()
+
16
);
aDir
.
append
(
aTmpDir
);
aDir
.
append
Ascii
(
"/psp"
);
aDir
.
append
(
"/psp"
);
aDir
.
append
(
nRand
);
OUString
aResult
=
aDir
.
makeStringAndClear
();
if
(
osl
::
Directory
::
create
(
aResult
)
==
osl
::
FileBase
::
E_None
)
...
...
vcl/unx/generic/printer/cupsmgr.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -324,7 +324,7 @@ void CUPSManager::initialize()
}
OUStringBuffer
aBuf
(
256
);
aBuf
.
append
Ascii
(
"CUPS:"
);
aBuf
.
append
(
"CUPS:"
);
aBuf
.
append
(
aPrinterName
);
// note: the parser that goes with the PrinterInfo
// is created implicitly by the JobData::operator=()
...
...
vcl/unx/kde/UnxCommandThread.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -48,7 +48,7 @@ namespace {
if
(
pUnicode
!=
pEnd
)
{
if
(
*
pUnicode
==
'n'
)
aBuffer
.
append
Ascii
(
"
\n
"
,
1
);
aBuffer
.
append
(
"
\n
"
);
else
aBuffer
.
append
(
*
pUnicode
);
}
...
...
vcl/unx/kde/UnxFilePicker.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -82,21 +82,21 @@ void appendEscaped( OUStringBuffer &rBuffer, const OUString &rString )
const
sal_Unicode
*
pUnicode
=
rString
.
getStr
();
const
sal_Unicode
*
pEnd
=
pUnicode
+
rString
.
getLength
();
rBuffer
.
append
Ascii
(
"
\"
"
,
1
);
rBuffer
.
append
(
"
\"
"
);
for
(
;
pUnicode
!=
pEnd
;
++
pUnicode
)
{
if
(
*
pUnicode
==
'\\'
)
rBuffer
.
append
Ascii
(
"
\\\\
"
,
2
);
rBuffer
.
append
(
"
\\\\
"
);
else
if
(
*
pUnicode
==
'"'
)
rBuffer
.
append
Ascii
(
"
\\\"
"
,
2
);
rBuffer
.
append
(
"
\\\"
"
);
else
if
(
*
pUnicode
==
'\n'
)
rBuffer
.
append
Ascii
(
"
\\
n"
,
2
);
rBuffer
.
append
(
"
\\
n"
);
else
rBuffer
.
append
(
*
pUnicode
);
}
rBuffer
.
append
Ascii
(
"
\"
"
,
1
);
rBuffer
.
append
(
"
\"
"
);
}
bool
controlIdInfo
(
sal_Int16
nControlId
,
OUString
&
rType
,
sal_Int32
&
rTitleId
)
...
...
@@ -258,7 +258,7 @@ void SAL_CALL UnxFilePicker::setTitle( const OUString &rTitle )
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setTitle "
);
aBuffer
.
append
(
"setTitle "
);
appendEscaped
(
aBuffer
,
rTitle
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -302,7 +302,7 @@ void SAL_CALL UnxFilePicker::setDefaultName( const OUString &rName )
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setDefaultName "
);
aBuffer
.
append
(
"setDefaultName "
);
appendEscaped
(
aBuffer
,
rName
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -316,7 +316,7 @@ void SAL_CALL UnxFilePicker::setDisplayDirectory( const OUString &rDirectory )
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setDirectory "
);
aBuffer
.
append
(
"setDirectory "
);
appendEscaped
(
aBuffer
,
rDirectory
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -354,9 +354,9 @@ void SAL_CALL UnxFilePicker::appendFilter( const OUString &rTitle, const OUStrin
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"appendFilter "
);
aBuffer
.
append
(
"appendFilter "
);
appendEscaped
(
aBuffer
,
rTitle
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
rFilter
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -370,7 +370,7 @@ void SAL_CALL UnxFilePicker::setCurrentFilter( const OUString &rTitle )
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setCurrentFilter "
);
aBuffer
.
append
(
"setCurrentFilter "
);
appendEscaped
(
aBuffer
,
rTitle
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -396,16 +396,16 @@ void SAL_CALL UnxFilePicker::appendFilterGroup( const OUString &rGroupTitle, con
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"appendFilterGroup "
);
aBuffer
.
append
(
"appendFilterGroup "
);
appendEscaped
(
aBuffer
,
rGroupTitle
);
for
(
sal_Int32
i
=
0
;
i
<
rFilters
.
getLength
();
++
i
)
{
beans
::
StringPair
aPair
=
rFilters
[
i
];
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
aPair
.
First
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
aPair
.
Second
);
}
...
...
@@ -426,18 +426,18 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA
{
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setValue "
);
aBuffer
.
append
(
"setValue "
);
aBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nControlId
)
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
aBuffer
.
append
(
aAction
);
if
(
aType
==
"checkbox"
)
{
bool
bControlValue
;
if
(
(
rValue
>>=
bControlValue
)
&&
bControlValue
)
aBuffer
.
append
Ascii
(
" true"
);
aBuffer
.
append
(
" true"
);
else
aBuffer
.
append
Ascii
(
" false"
);
aBuffer
.
append
(
" false"
);
}
else
if
(
aType
==
"listbox"
)
{
...
...
@@ -449,7 +449,7 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA
OUString
aString
;
if
(
rValue
>>=
aString
)
{
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
aString
);
}
}
...
...
@@ -462,7 +462,7 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA
{
for
(
sal_Int32
nIdx
=
0
;
nIdx
<
aSequence
.
getLength
();
++
nIdx
)
{
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
aSequence
[
nIdx
]
);
}
...
...
@@ -476,7 +476,7 @@ void SAL_CALL UnxFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlA
sal_Int32
nInt
;
if
(
rValue
>>=
nInt
)
{
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
aBuffer
.
append
(
nInt
);
}
}
...
...
@@ -505,9 +505,9 @@ uno::Any SAL_CALL UnxFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nCont
{
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"getValue "
);
aBuffer
.
append
(
"getValue "
);
aBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nControlId
)
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
aBuffer
.
append
(
aAction
);
sendCommand
(
aBuffer
.
makeStringAndClear
(),
...
...
@@ -527,7 +527,7 @@ void SAL_CALL UnxFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnab
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"enableControl "
);
aBuffer
.
append
(
"enableControl "
);
aBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nControlId
)
);
aBuffer
.
appendAscii
(
bEnable
?
" true"
:
" false"
);
...
...
@@ -542,9 +542,9 @@ void SAL_CALL UnxFilePicker::setLabel( sal_Int16 nControlId, const OUString &rLa
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"setLabel "
);
aBuffer
.
append
(
"setLabel "
);
aBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nControlId
)
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
rLabel
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
@@ -902,11 +902,11 @@ void UnxFilePicker::sendAppendControlCommand( sal_Int16 nControlId )
{
OUStringBuffer
aBuffer
(
1024
);
aBuffer
.
append
Ascii
(
"appendControl "
);
aBuffer
.
append
(
"appendControl "
);
aBuffer
.
append
(
static_cast
<
sal_Int32
>
(
nControlId
)
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
aType
);
aBuffer
.
append
Ascii
(
" "
,
1
);
aBuffer
.
append
(
" "
);
appendEscaped
(
aBuffer
,
m_pResMgr
?
ResId
(
nTitleId
,
*
m_pResMgr
).
toString
()
:
OUString
()
);
sendCommand
(
aBuffer
.
makeStringAndClear
()
);
...
...
vcl/unx/x11/x11sys.cxx
Dosyayı görüntüle @
0f3ccde7
...
...
@@ -96,7 +96,7 @@ OUString X11SalSystem::GetDisplayScreenName( unsigned int nScreen )
nScreen
=
0
;
OUStringBuffer
aBuf
(
256
);
aBuf
.
append
(
OStringToOUString
(
OString
(
DisplayString
(
pSalDisp
->
GetDisplay
()
)
),
osl_getThreadTextEncoding
()
)
);
aBuf
.
append
Ascii
(
" ["
);
aBuf
.
append
(
" ["
);
aBuf
.
append
(
static_cast
<
sal_Int32
>
(
nScreen
)
);
aBuf
.
append
(
']'
);
aScreenName
=
aBuf
.
makeStringAndClear
();
...
...
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