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
38d0db29
Kaydet (Commit)
38d0db29
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: Ifb6cc6d604d1a2b87491f2e455e65c94a5431095
üst
1b70ed18
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
40 deletions
+40
-40
SchXMLPlotAreaContext.cxx
xmloff/source/chart/SchXMLPlotAreaContext.cxx
+2
-2
xmlerror.cxx
xmloff/source/core/xmlerror.cxx
+24
-24
xmlnumfe.cxx
xmloff/source/style/xmlnumfe.cxx
+4
-4
xmlnumfi.cxx
xmloff/source/style/xmlnumfi.cxx
+3
-3
txtflde.cxx
xmloff/source/text/txtflde.cxx
+2
-2
txtftne.cxx
xmloff/source/text/txtftne.cxx
+1
-1
txtvfldi.cxx
xmloff/source/text/txtvfldi.cxx
+4
-4
No files found.
xmloff/source/chart/SchXMLPlotAreaContext.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -949,9 +949,9 @@ static void lcl_setErrorBarSequence ( const uno::Reference< chart2::XChartDocume
aRoleBuffer
.
append
(
'-'
);
if
(
bPositiveValue
)
aRoleBuffer
=
aRoleBuffer
.
append
Ascii
(
"positive"
);
aRoleBuffer
=
aRoleBuffer
.
append
(
"positive"
);
else
aRoleBuffer
=
aRoleBuffer
.
append
Ascii
(
"negative"
);
aRoleBuffer
=
aRoleBuffer
.
append
(
"negative"
);
OUString
aRole
=
aRoleBuffer
.
makeStringAndClear
();
...
...
xmloff/source/core/xmlerror.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -113,66 +113,66 @@ void XMLErrors::AddRecord(
OUStringBuffer
sMessage
;
sMessage
.
append
Ascii
(
"An error or a warning has occurred during XML import/export!
\n
"
);
sMessage
.
append
(
"An error or a warning has occurred during XML import/export!
\n
"
);
// ID & flags
sMessage
.
append
Ascii
(
"Error-Id: 0x"
);
sMessage
.
append
(
"Error-Id: 0x"
);
sMessage
.
append
(
nId
,
16
);
sMessage
.
append
Ascii
(
"
\n
Flags: "
);
sMessage
.
append
(
"
\n
Flags: "
);
sal_Int32
nFlags
=
(
nId
&
XMLERROR_MASK_FLAG
);
sMessage
.
append
(
nFlags
>>
28
,
16
);
if
(
(
nFlags
&
XMLERROR_FLAG_WARNING
)
!=
0
)
sMessage
.
append
Ascii
(
" WARNING"
);
sMessage
.
append
(
" WARNING"
);
if
(
(
nFlags
&
XMLERROR_FLAG_ERROR
)
!=
0
)
sMessage
.
append
Ascii
(
" ERROR"
);
sMessage
.
append
(
" ERROR"
);
if
(
(
nFlags
&
XMLERROR_FLAG_SEVERE
)
!=
0
)
sMessage
.
append
Ascii
(
" SEVERE"
);
sMessage
.
append
Ascii
(
"
\n
Class: "
);
sMessage
.
append
(
" SEVERE"
);
sMessage
.
append
(
"
\n
Class: "
);
sal_Int32
nClass
=
(
nId
&
XMLERROR_MASK_CLASS
);
sMessage
.
append
(
nClass
>>
16
,
16
);
if
(
(
nClass
&
XMLERROR_CLASS_IO
)
!=
0
)
sMessage
.
append
Ascii
(
" IO"
);
sMessage
.
append
(
" IO"
);
if
(
(
nClass
&
XMLERROR_CLASS_FORMAT
)
!=
0
)
sMessage
.
append
Ascii
(
" FORMAT"
);
sMessage
.
append
(
" FORMAT"
);
if
(
(
nClass
&
XMLERROR_CLASS_API
)
!=
0
)
sMessage
.
append
Ascii
(
" API"
);
sMessage
.
append
(
" API"
);
if
(
(
nClass
&
XMLERROR_CLASS_OTHER
)
!=
0
)
sMessage
.
append
Ascii
(
" OTHER"
);
sMessage
.
append
Ascii
(
"
\n
Number: "
);
sMessage
.
append
(
" OTHER"
);
sMessage
.
append
(
"
\n
Number: "
);
sal_Int32
nNumber
=
(
nId
&
XMLERROR_MASK_NUMBER
);
sMessage
.
append
(
nNumber
,
16
);
sMessage
.
append
Ascii
(
"
\n
"
);
sMessage
.
append
(
"
\n
"
);
// the parameters
sMessage
.
append
Ascii
(
"Parameters:
\n
"
);
sMessage
.
append
(
"Parameters:
\n
"
);
sal_Int32
nLength
=
rParams
.
getLength
();
const
OUString
*
pParams
=
rParams
.
getConstArray
();
for
(
sal_Int32
i
=
0
;
i
<
nLength
;
i
++
)
{
sMessage
.
append
Ascii
(
" "
);
sMessage
.
append
(
" "
);
sMessage
.
append
(
i
);
sMessage
.
append
Ascii
(
": "
);
sMessage
.
append
(
": "
);
sMessage
.
append
(
pParams
[
i
]
);
sMessage
.
append
Ascii
(
"
\n
"
);
sMessage
.
append
(
"
\n
"
);
}
// the exception message
sMessage
.
append
Ascii
(
"Exception-Message: "
);
sMessage
.
append
(
"Exception-Message: "
);
sMessage
.
append
(
rExceptionMessage
);
sMessage
.
append
Ascii
(
"
\n
"
);
sMessage
.
append
(
"
\n
"
);
// position (if given)
if
(
(
nRow
!=
-
1
)
||
(
nColumn
!=
-
1
)
)
{
sMessage
.
append
Ascii
(
"Position:
\n
Public Identifier: "
);
sMessage
.
append
(
"Position:
\n
Public Identifier: "
);
sMessage
.
append
(
rPublicId
);
sMessage
.
append
Ascii
(
"
\n
System Identifier: "
);
sMessage
.
append
(
"
\n
System Identifier: "
);
sMessage
.
append
(
rSystemId
);
sMessage
.
append
Ascii
(
"
\n
Row, Column: "
);
sMessage
.
append
(
"
\n
Row, Column: "
);
sMessage
.
append
(
nRow
);
sMessage
.
append
Ascii
(
","
);
sMessage
.
append
(
","
);
sMessage
.
append
(
nColumn
);
sMessage
.
append
Ascii
(
"
\n
"
);
sMessage
.
append
(
"
\n
"
);
}
// convert to byte string and signal the error
...
...
xmloff/source/style/xmlnumfe.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -759,15 +759,15 @@ void SvXMLNumFmtExport::WriteMapElement_Impl( sal_Int32 nOp, double fLimit,
// style namespace
OUStringBuffer
aCondStr
(
20
);
aCondStr
.
append
Ascii
(
"value()"
);
//! define constant
aCondStr
.
append
(
"value()"
);
//! define constant
switch
(
nOp
)
{
case
NUMBERFORMAT_OP_EQ
:
aCondStr
.
append
(
'='
);
break
;
case
NUMBERFORMAT_OP_NE
:
aCondStr
.
append
Ascii
(
"!="
);
break
;
case
NUMBERFORMAT_OP_NE
:
aCondStr
.
append
(
"!="
);
break
;
case
NUMBERFORMAT_OP_LT
:
aCondStr
.
append
(
'<'
);
break
;
case
NUMBERFORMAT_OP_LE
:
aCondStr
.
append
Ascii
(
"<="
);
break
;
case
NUMBERFORMAT_OP_LE
:
aCondStr
.
append
(
"<="
);
break
;
case
NUMBERFORMAT_OP_GT
:
aCondStr
.
append
(
'>'
);
break
;
case
NUMBERFORMAT_OP_GE
:
aCondStr
.
append
Ascii
(
">="
);
break
;
case
NUMBERFORMAT_OP_GE
:
aCondStr
.
append
(
">="
);
break
;
default
:
OSL_FAIL
(
"unknown operator"
);
}
...
...
xmloff/source/style/xmlnumfi.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -1603,7 +1603,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert(SvNumberFormatter* pFormatter)
{
// insert empty format as empty string (with quotes)
// #93901# this check has to be done before inserting the conditions
aFormatCode
.
append
Ascii
(
"
\"\"
"
);
// ""
aFormatCode
.
append
(
"
\"\"
"
);
// ""
}
aFormatCode
.
insert
(
0
,
aConditions
.
makeStringAndClear
()
);
...
...
@@ -1964,7 +1964,7 @@ void SvXMLNumFormatContext::AddCurrency( const OUString& rContent, LanguageType
}
if
(
!
bAutomatic
)
aFormatCode
.
append
Ascii
(
"[$"
);
// intro for "new" currency symbols
aFormatCode
.
append
(
"[$"
);
// intro for "new" currency symbols
aFormatCode
.
append
(
aSymbol
);
...
...
@@ -2179,7 +2179,7 @@ void SvXMLNumFormatContext::UpdateCalendar( const OUString& rNewCalendar )
sCalendar
=
rNewCalendar
;
if
(
!
sCalendar
.
isEmpty
()
)
{
aFormatCode
.
append
Ascii
(
"[~"
);
// intro for calendar code
aFormatCode
.
append
(
"[~"
);
// intro for calendar code
aFormatCode
.
append
(
sCalendar
);
aFormatCode
.
append
(
']'
);
// end of "new" currency symbolcalendar code
}
...
...
xmloff/source/text/txtflde.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -3513,7 +3513,7 @@ OUString XMLTextFieldExport::MakeFootnoteRefName(
{
// generate foot-/endnote ID
OUStringBuffer
aBuf
;
aBuf
.
append
Ascii
(
"ftn"
);
aBuf
.
append
(
"ftn"
);
aBuf
.
append
((
sal_Int32
)
nSeqNo
);
return
aBuf
.
makeStringAndClear
();
}
...
...
@@ -3524,7 +3524,7 @@ OUString XMLTextFieldExport::MakeSequenceRefName(
{
// generate foot-/endnote ID
OUStringBuffer
aBuf
;
aBuf
.
append
Ascii
(
"ref"
);
aBuf
.
append
(
"ref"
);
aBuf
.
append
(
rSeqName
);
aBuf
.
append
((
sal_Int32
)
nSeqNo
);
return
aBuf
.
makeStringAndClear
();
...
...
xmloff/source/text/txtftne.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -170,7 +170,7 @@ void XMLTextParagraphExport::exportTextFootnoteHelper(
sal_Int32
nNumber
=
0
;
aAny
>>=
nNumber
;
OUStringBuffer
aBuf
;
aBuf
.
append
Ascii
(
"ftn"
);
aBuf
.
append
(
"ftn"
);
aBuf
.
append
(
nNumber
);
GetExport
().
AddAttribute
(
XML_NAMESPACE_TEXT
,
XML_ID
,
aBuf
.
makeStringAndClear
());
...
...
xmloff/source/text/txtvfldi.cxx
Dosyayı görüntüle @
38d0db29
...
...
@@ -959,13 +959,13 @@ bool XMLVariableDeclImportContext::FindFieldMaster(
OUStringBuffer
sBuffer
;
sBuffer
.
appendAscii
(
sAPI_fieldmaster_prefix
);
sBuffer
.
appendAscii
(
sAPI_set_expression
);
sBuffer
.
append
Ascii
(
"."
);
sBuffer
.
append
(
"."
);
sBuffer
.
append
(
sName
);
OUString
sVarServiceName
=
sBuffer
.
makeStringAndClear
();
sBuffer
.
appendAscii
(
sAPI_fieldmaster_prefix
);
sBuffer
.
appendAscii
(
sAPI_user
);
sBuffer
.
append
Ascii
(
"."
);
sBuffer
.
append
(
"."
);
sBuffer
.
append
(
sName
);
OUString
sUserServiceName
=
sBuffer
.
makeStringAndClear
();
...
...
@@ -995,7 +995,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster(
nCollisionCount
++
;
OUStringBuffer
aBuf
;
aBuf
.
append
(
sName
);
aBuf
.
append
Ascii
(
"_renamed_"
);
aBuf
.
append
(
"_renamed_"
);
aBuf
.
append
(
nCollisionCount
);
sNew
=
aBuf
.
makeStringAndClear
();
...
...
@@ -1020,7 +1020,7 @@ bool XMLVariableDeclImportContext::FindFieldMaster(
nCollisionCount
++
;
OUStringBuffer
aBuf
;
aBuf
.
append
(
sName
);
aBuf
.
append
Ascii
(
"_renamed_"
);
aBuf
.
append
(
"_renamed_"
);
aBuf
.
append
(
nCollisionCount
);
sNew
=
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