Skip to content

Commit

Permalink
Consistency of argument of trDocumentation
Browse files Browse the repository at this point in the history
Based on the coverity warning and making the `trDocumentation` in respect to the `const QCString` argument more consistent with other translation functions
  • Loading branch information
albert-github committed Mar 29, 2024
1 parent cc81338 commit c4d5296
Show file tree
Hide file tree
Showing 43 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion src/translator.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Translator

// index titles (the project name is prepended for these)

virtual QCString trDocumentation(const QCString projName) = 0;
virtual QCString trDocumentation(const QCString &projName) = 0;
virtual QCString trModuleIndex() = 0;
virtual QCString trHierarchicalIndex() = 0;
virtual QCString trCompoundIndex() = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/translator_am.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class TranslatorArmenian : public TranslatorAdapter_1_8_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + " - Փաստագրություն"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_ar.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class TranslatorArabic : public TranslatorAdapter_1_4_6


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "التوثيق"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_bg.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ class TranslatorBulgarian : public TranslatorAdapter_1_9_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документация"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_br.h
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class TranslatorBrazilian : public Translator
{ return "Lista de todos os módulos:"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return "Documentação" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_ca.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class TranslatorCatalan : public TranslatorAdapter_1_8_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + ": Documentació"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_cn.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class TranslatorChinese : public Translator
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "文档"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_cz.h
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class TranslatorCzech : public TranslatorAdapter_1_9_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentace"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_de.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ class TranslatorGerman : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentation"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_dk.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class TranslatorDanish : public TranslatorAdapter_1_8_0
{ return "Her er en liste over alle moduler:"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentation"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_en.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class TranslatorEnglish : public Translator
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentation"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_eo.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class TranslatorEsperanto : public TranslatorAdapter_1_8_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentado"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_es.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ class TranslatorSpanish : public TranslatorAdapter_1_9_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return "Documentación" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_fa.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class TranslatorPersian : public TranslatorAdapter_1_7_5


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return "مستندات" + (!projName.isEmpty()?" " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_fi.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class TranslatorFinnish : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentaatio"; } // "Documentation"

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_fr.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ class TranslatorFrench : public TranslatorAdapter_1_9_5
{ return "Liste de tous les modules :"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentation"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_gr.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class TranslatorGreek : public TranslatorAdapter_1_11_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Τεκμηρίωση"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_hi.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class TranslatorHindi : public TranslatorAdapter_1_9_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "दस्तावेज़ीकरण"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_hr.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class TranslatorCroatian : public TranslatorAdapter_1_8_2
QCString trModulesDescription() override
{ return "Popis svih modula:"; }

QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }
QCString trModuleIndex() override
{ return "Kazalo modula"; }
Expand Down
2 changes: 1 addition & 1 deletion src/translator_hu.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ class TranslatorHungarian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentáció"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class TranslatorIndonesian : public TranslatorAdapter_1_8_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentasi"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_it.h
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ class TranslatorItalian : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentazione"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_jp.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ class TranslatorJapanese : public TranslatorAdapter_1_8_15
{ return "全モジュールの一覧です。"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "詳解"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_kr.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ class TranslatorKorean : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "문서화"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_lt.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class TranslatorLithuanian : public TranslatorAdapter_1_4_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_lv.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class TranslatorLatvian : public TranslatorAdapter_1_8_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentācija"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_mk.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class TranslatorMacedonian : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документација"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_nl.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class TranslatorDutch : public Translator
QCString trModulesDescription() override
{ return "Hieronder volgt de lijst met alle modules:"; }

QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentatie"; }
QCString trModuleIndex() override
{ return "Module Index"; }
Expand Down
2 changes: 1 addition & 1 deletion src/translator_no.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class TranslatorNorwegian : public TranslatorAdapter_1_4_6


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentasjon"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_pl.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class TranslatorPolish : public TranslatorAdapter_1_11_0


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacja"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_pt.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class TranslatorPortuguese : public Translator


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return "Documentação" + (!projName.isEmpty()? " de " + projName : ""); }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_ro.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class TranslatorRomanian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Documentaţie"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_ru.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class TranslatorRussian : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документация"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_sc.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class TranslatorSerbianCyrillic : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документација"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_si.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class TranslatorSlovene : public TranslatorAdapter_1_4_6
{ return "Seznam strani z dodatnimi opisi:"; }
QCString trModulesDescription() override
{ return "Seznam modulov:"; }
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }
QCString trModuleIndex() override
{ return "seznam modulov"; }
Expand Down
2 changes: 1 addition & 1 deletion src/translator_sk.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class TranslatorSlovak : public TranslatorAdapter_1_8_15
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentácia"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_sr.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class TranslatorSerbian : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentacija"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_sv.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ class TranslatorSwedish : public TranslatorAdapter_1_9_6
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentation"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_tr.h
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class TranslatorTurkish : public TranslatorAdapter_1_7_5
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokümantasyonu"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_tw.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class TranslatorChinesetraditional : public TranslatorAdapter_1_8_15


/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "說明文件"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_ua.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class TranslatorUkrainian : public TranslatorAdapter_1_8_4
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Документація"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_vi.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class TranslatorVietnamese : public TranslatorAdapter_1_6_0
// index titles (the project name is prepended for these)

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Thông tin"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down
2 changes: 1 addition & 1 deletion src/translator_za.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class TranslatorAfrikaans : public TranslatorAdapter_1_6_0
{ return "'n Lys van alle modules:"; }

/*! This is used in HTML as the title of index.html. */
QCString trDocumentation(const QCString projName) override
QCString trDocumentation(const QCString &projName) override
{ return (!projName.isEmpty()?projName + " " : "") + "Dokumentasie"; }

/*! This is used in LaTeX as the title of the chapter with the
Expand Down

0 comments on commit c4d5296

Please sign in to comment.