diff options
author | hjk <qtc-committer@nokia.com> | 2011-11-02 16:45:13 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-11-02 18:20:19 +0100 |
commit | 29279ab8c7c6ea726abfd51d8585e7d12387aaa3 (patch) | |
tree | cd9173978ebcaf5e1a962f90dc1b72d3e1eb8fec /src/plugins/cvs | |
parent | 7efa115245c75019129a0cb768eb33d29e6bd00f (diff) | |
download | qt-creator-29279ab8c7c6ea726abfd51d8585e7d12387aaa3.tar.gz |
more style fixes of string literal access
Change-Id: I60b0c53681c6a0cc38231e805479deb614aa0096
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/cvs')
-rw-r--r-- | src/plugins/cvs/cvsconstants.h | 14 | ||||
-rw-r--r-- | src/plugins/cvs/cvsplugin.cpp | 59 |
2 files changed, 37 insertions, 36 deletions
diff --git a/src/plugins/cvs/cvsconstants.h b/src/plugins/cvs/cvsconstants.h index b6746a35f6..4ee7bbdf5b 100644 --- a/src/plugins/cvs/cvsconstants.h +++ b/src/plugins/cvs/cvsconstants.h @@ -36,15 +36,15 @@ namespace CVS { namespace Constants { -const char * const CVS_SUBMIT_MIMETYPE = "application/vnd.nokia.text.cvs.submit"; -const char * const CVSCOMMITEDITOR = "CVS Commit Editor"; -const char * const CVSCOMMITEDITOR_ID = "CVS Commit Editor"; -const char * const CVSCOMMITEDITOR_DISPLAY_NAME = QT_TRANSLATE_NOOP("VCS", "CVS Commit Editor"); -const char * const SUBMIT_CURRENT = "CVS.SubmitCurrentLog"; -const char * const DIFF_SELECTED = "CVS.DiffSelectedFilesInLog"; +const char CVS_SUBMIT_MIMETYPE[] = "application/vnd.nokia.text.cvs.submit"; +const char CVSCOMMITEDITOR[] = "CVS Commit Editor"; +const char CVSCOMMITEDITOR_ID[] = "CVS Commit Editor"; +const char CVSCOMMITEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("VCS", "CVS Commit Editor"); +const char SUBMIT_CURRENT[] = "CVS.SubmitCurrentLog"; +const char DIFF_SELECTED[] = "CVS.DiffSelectedFilesInLog"; enum { debug = 0 }; } // namespace Constants -} // namespace SubVersion +} // namespace CVS #endif // CVS_CONSTANTS_H diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp index 214e92088f..5f29923d5b 100644 --- a/src/plugins/cvs/cvsplugin.cpp +++ b/src/plugins/cvs/cvsplugin.cpp @@ -75,7 +75,7 @@ #include <QtGui/QMessageBox> namespace CVS { - namespace Internal { +namespace Internal { static inline QString msgCannotFindTopLevel(const QString &f) { @@ -88,32 +88,32 @@ static inline QString msgLogParsingFailed() return CVSPlugin::tr("Parsing of the log output failed"); } -static const char * const CMD_ID_CVS_MENU = "CVS.Menu"; -static const char * const CMD_ID_ADD = "CVS.Add"; -static const char * const CMD_ID_DELETE_FILE = "CVS.Delete"; -static const char * const CMD_ID_EDIT_FILE = "CVS.EditFile"; -static const char * const CMD_ID_UNEDIT_FILE = "CVS.UneditFile"; -static const char * const CMD_ID_UNEDIT_REPOSITORY = "CVS.UneditRepository"; -static const char * const CMD_ID_REVERT = "CVS.Revert"; -static const char * const CMD_ID_SEPARATOR0 = "CVS.Separator0"; -static const char * const CMD_ID_DIFF_PROJECT = "CVS.DiffAll"; -static const char * const CMD_ID_DIFF_CURRENT = "CVS.DiffCurrent"; -static const char * const CMD_ID_SEPARATOR1 = "CVS.Separator1"; -static const char * const CMD_ID_COMMIT_ALL = "CVS.CommitAll"; -static const char * const CMD_ID_REVERT_ALL = "CVS.RevertAll"; -static const char * const CMD_ID_COMMIT_CURRENT = "CVS.CommitCurrent"; -static const char * const CMD_ID_SEPARATOR2 = "CVS.Separator2"; -static const char * const CMD_ID_FILELOG_CURRENT = "CVS.FilelogCurrent"; -static const char * const CMD_ID_ANNOTATE_CURRENT = "CVS.AnnotateCurrent"; -static const char * const CMD_ID_STATUS = "CVS.Status"; -static const char * const CMD_ID_UPDATE = "CVS.Update"; -static const char * const CMD_ID_PROJECTLOG = "CVS.ProjectLog"; -static const char * const CMD_ID_PROJECTCOMMIT = "CVS.ProjectCommit"; -static const char * const CMD_ID_REPOSITORYLOG = "CVS.RepositoryLog"; -static const char * const CMD_ID_REPOSITORYDIFF = "CVS.RepositoryDiff"; -static const char * const CMD_ID_REPOSITORYSTATUS = "CVS.RepositoryStatus"; -static const char * const CMD_ID_REPOSITORYUPDATE = "CVS.RepositoryUpdate"; -static const char * const CMD_ID_SEPARATOR3 = "CVS.Separator3"; +static const char CMD_ID_CVS_MENU[] = "CVS.Menu"; +static const char CMD_ID_ADD[] = "CVS.Add"; +static const char CMD_ID_DELETE_FILE[] = "CVS.Delete"; +static const char CMD_ID_EDIT_FILE[] = "CVS.EditFile"; +static const char CMD_ID_UNEDIT_FILE[] = "CVS.UneditFile"; +static const char CMD_ID_UNEDIT_REPOSITORY[] = "CVS.UneditRepository"; +static const char CMD_ID_REVERT[] = "CVS.Revert"; +static const char CMD_ID_SEPARATOR0[] = "CVS.Separator0"; +static const char CMD_ID_DIFF_PROJECT[] = "CVS.DiffAll"; +static const char CMD_ID_DIFF_CURRENT[] = "CVS.DiffCurrent"; +static const char CMD_ID_SEPARATOR1[] = "CVS.Separator1"; +static const char CMD_ID_COMMIT_ALL[] = "CVS.CommitAll"; +static const char CMD_ID_REVERT_ALL[] = "CVS.RevertAll"; +static const char CMD_ID_COMMIT_CURRENT[] = "CVS.CommitCurrent"; +static const char CMD_ID_SEPARATOR2[] = "CVS.Separator2"; +static const char CMD_ID_FILELOG_CURRENT[] = "CVS.FilelogCurrent"; +static const char CMD_ID_ANNOTATE_CURRENT[] = "CVS.AnnotateCurrent"; +static const char CMD_ID_STATUS[] = "CVS.Status"; +static const char CMD_ID_UPDATE[] = "CVS.Update"; +static const char CMD_ID_PROJECTLOG[] = "CVS.ProjectLog"; +static const char CMD_ID_PROJECTCOMMIT[] = "CVS.ProjectCommit"; +static const char CMD_ID_REPOSITORYLOG[] = "CVS.RepositoryLog"; +static const char CMD_ID_REPOSITORYDIFF[] = "CVS.RepositoryDiff"; +static const char CMD_ID_REPOSITORYSTATUS[] = "CVS.RepositoryStatus"; +static const char CMD_ID_REPOSITORYUPDATE[] = "CVS.RepositoryUpdate"; +static const char CMD_ID_SEPARATOR3[] = "CVS.Separator3"; static const VCSBase::VCSBaseEditorParameters editorParameters[] = { { @@ -1392,8 +1392,9 @@ CVSControl *CVSPlugin::cvsVersionControl() const return static_cast<CVSControl *>(versionControl()); } -} -} +} // namespace Internal +} // namespace CVS + Q_EXPORT_PLUGIN(CVS::Internal::CVSPlugin) #include "cvsplugin.moc" |