Skip to content

Commit f20f996

Browse files
committed
Fix uninitialised member problems (Coverity)
None of them seem to be critical though.
1 parent 0eb1f65 commit f20f996

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/Application.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Application::Application(int& argc, char** argv) :
5656
// a language change when the user toggles settings for the first time.
5757
// (it also prevents the program from always looking for a translation on launch)
5858
Settings::setValue("General", "language", "en_US");
59+
60+
// Don't install a translator for Qt texts if no translator for DB4S texts could be loaded
61+
m_translatorQt = nullptr;
5962
}
6063

6164
// Parse command line

src/DbStructureModel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ DbStructureModel::DbStructureModel(DBBrowserDB& db, QObject* parent)
1616
QStringList header;
1717
header << tr("Name") << tr("Object") << tr("Type") << tr("Schema") << tr("Database");
1818
rootItem = new QTreeWidgetItem(header);
19+
browsablesRootItem = nullptr;
1920
}
2021

2122
DbStructureModel::~DbStructureModel()

src/EditDialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ EditDialog::EditDialog(QWidget* parent)
1616
: QDialog(parent),
1717
ui(new Ui::EditDialog),
1818
currentIndex(QModelIndex()),
19+
dataSource(TextBuffer),
1920
dataType(Null),
21+
textNullSet(false),
2022
isReadOnly(true)
2123
{
2224
ui->setupUi(this);

0 commit comments

Comments
 (0)