summaryrefslogtreecommitdiffstats
path: root/src/linguist
diff options
context:
space:
mode:
Diffstat (limited to 'src/linguist')
-rw-r--r--src/linguist/linguist/mainwindow.cpp6
-rw-r--r--src/linguist/shared/qm.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp
index 468c49d1d..52b8044f6 100644
--- a/src/linguist/linguist/mainwindow.cpp
+++ b/src/linguist/linguist/mainwindow.cpp
@@ -1305,9 +1305,9 @@ void MainWindow::addToPhraseBook()
return;
} else {
bool okPressed = false;
- QString selectedPhraseBook = QInputDialog::getItem(this, tr("Add to phrase book"),
- tr("Select phrase book to add to"),
- phraseBookList, 0, false, &okPressed);
+ selectedPhraseBook = QInputDialog::getItem(this, tr("Add to phrase book"),
+ tr("Select phrase book to add to"),
+ phraseBookList, 0, false, &okPressed);
if (!okPressed)
return;
}
diff --git a/src/linguist/shared/qm.cpp b/src/linguist/shared/qm.cpp
index 288607824..8c3fc3faf 100644
--- a/src/linguist/shared/qm.cpp
+++ b/src/linguist/shared/qm.cpp
@@ -552,7 +552,7 @@ bool loadQM(Translator &translator, QIODevice &dev, ConversionData &cd)
goto end;
case Tag_Translation: {
int len = read32(m);
- if (len % 1) {
+ if (len & 1) {
cd.appendError(QLatin1String("QM-Format error"));
return false;
}