OSDN Git Service

Fix tr()/compiler warnings
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 28 Oct 2009 16:17:01 +0000 (17:17 +0100)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 28 Oct 2009 16:17:01 +0000 (17:17 +0100)
src/plugins/coreplugin/editormanager/editorview.cpp
src/plugins/cpaster/codepasterprotocol.cpp
src/plugins/projectexplorer/projectwelcomepagewidget.cpp

index 5cb4e43..743d2f7 100644 (file)
@@ -68,7 +68,7 @@ using namespace Core;
 using namespace Core::Internal;
 
 
 using namespace Core::Internal;
 
 
-//================EditorView====================
+// ================EditorView====================
 
 EditorView::EditorView(OpenEditorsModel *model, QWidget *parent) :
     QWidget(parent),
 
 EditorView::EditorView(OpenEditorsModel *model, QWidget *parent) :
     QWidget(parent),
index 7661498..00eb1f7 100644 (file)
@@ -67,9 +67,9 @@ bool CodePasterProtocol::isValidHostName(const QString& hostName)
     if (hostName.isEmpty()) {
         ICore::instance()->messageManager()->printToOutputPane(
 #ifdef Q_OS_MAC
     if (hostName.isEmpty()) {
         ICore::instance()->messageManager()->printToOutputPane(
 #ifdef Q_OS_MAC
-                       tr("No Server defined in the CodePaster preferences!"),
+                       tr("No Server defined in the CodePaster preferences."),
 #else
 #else
-                       tr("No Server defined in the CodePaster options!"),
+                       tr("No Server defined in the CodePaster options."),
 #endif
                        true /*error*/);
         ICore::instance()->messageManager()->showOutputPane();
 #endif
                        true /*error*/);
         ICore::instance()->messageManager()->showOutputPane();
index c2c7c9d..41a737a 100644 (file)
@@ -125,7 +125,7 @@ void ProjectWelcomePageWidget::updateWelcomePage(const WelcomePageData &welcomeP
     if (welcomePageData.projectList.count() > 0) {
         foreach (const QStringPair &it, welcomePageData.projectList) {
             const QFileInfo fi(it.first);
     if (welcomePageData.projectList.count() > 0) {
         foreach (const QStringPair &it, welcomePageData.projectList) {
             const QFileInfo fi(it.first);
-            QTreeWidgetItem *item = ui->projTreeWidget->addItem(it.second, it.first, fi.absolutePath());
+            ui->projTreeWidget->addItem(it.second, it.first, fi.absolutePath());
         }
     } else {
         ui->projTreeWidget->hide();
         }
     } else {
         ui->projTreeWidget->hide();