[PATCH] Remove useless QString() around tr().

Jaak Ristioja ristioja at gmail.com
Fri Apr 17 09:38:26 MST 2009


---
 .../mainindex/bookshelf/cbookshelfindex.cpp        |    2 +-
 .../searchdialog/analysis/csearchanalysisscene.cpp |    2 +-
 src/frontend/searchdialog/cmoduleresultview.cpp    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontend/mainindex/bookshelf/cbookshelfindex.cpp b/src/frontend/mainindex/bookshelf/cbookshelfindex.cpp
index f563db3..983f6e0 100644
--- a/src/frontend/mainindex/bookshelf/cbookshelfindex.cpp
+++ b/src/frontend/mainindex/bookshelf/cbookshelfindex.cpp
@@ -530,7 +530,7 @@ void CBookshelfIndex::contextMenu(const QPoint& p) {
 		foreach (QAction* action, m_actionList) {
 			// Change the text of some menu items to reflect multiple selection
 			if ((IndexAction)action->property("indexActionType").toInt() == SearchModules ) {
-				action->setText( QString(tr("Search in selected...")) );
+				action->setText(tr("Search in selected..."));
 			}
 			// Enable items
 			foreach(QTreeWidgetItem* item, items) {
diff --git a/src/frontend/searchdialog/analysis/csearchanalysisscene.cpp b/src/frontend/searchdialog/analysis/csearchanalysisscene.cpp
index 091aa15..2203b09 100644
--- a/src/frontend/searchdialog/analysis/csearchanalysisscene.cpp
+++ b/src/frontend/searchdialog/analysis/csearchanalysisscene.cpp
@@ -224,7 +224,7 @@ unsigned int CSearchAnalysisScene::getCount( const QString book, CSwordModuleInf
 }
 
 void CSearchAnalysisScene::saveAsHTML() {
-	const QString fileName = QFileDialog::getSaveFileName(0, tr("Save Search Analysis"), QString::null, QString(tr("HTML files (*.html;*.HTML;*.HTM;*.htm)")) );
+	const QString fileName = QFileDialog::getSaveFileName(0, tr("Save Search Analysis"), QString::null, tr("HTML files (*.html;*.HTML;*.HTM;*.htm)") );
 	if (fileName.isEmpty()) return;
 
 	int count = 0;
diff --git a/src/frontend/searchdialog/cmoduleresultview.cpp b/src/frontend/searchdialog/cmoduleresultview.cpp
index 4284203..7dea720 100644
--- a/src/frontend/searchdialog/cmoduleresultview.cpp
+++ b/src/frontend/searchdialog/cmoduleresultview.cpp
@@ -52,7 +52,7 @@ void CModuleResultView::initView()
 {
 	// see also csearchresultview.cpp
 	setToolTip(tr("Works chosen for the search and the number of the hits in each work"));
-	setHeaderLabels( QStringList(tr("Work")) << QString(tr("Hits")) );
+	setHeaderLabels( QStringList(tr("Work")) << tr("Hits") );
 
 	setColumnWidth(0, CToolClass::mWidth(this, 8));
 	setColumnWidth(1, CToolClass::mWidth(this, 4));
-- 
1.6.0.6


--------------020907090403070604080604
Content-Type: text/plain;
 name="0008-Made-indexing-string-better-for-translation.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="0008-Made-indexing-string-better-for-translation.patch"



More information about the bt-devel mailing list