diff options
author | Mark Brand <mabrand@mabrand.nl> | 2013-02-05 08:07:07 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-05 22:14:51 (GMT) |
commit | c8c403375f92d86995aa114abd674e71ae5bd9b3 (patch) | |
tree | 3f0c4d7e9b804934afdc034c80be4d4eb5f85118 /src | |
parent | 86ab834dd8dcd3e85a02c47f58084178227b2f12 (diff) | |
download | Qt-c8c403375f92d86995aa114abd674e71ae5bd9b3.zip Qt-c8c403375f92d86995aa114abd674e71ae5bd9b3.tar.gz Qt-c8c403375f92d86995aa114abd674e71ae5bd9b3.tar.bz2 |
remove misleading statement from ~QSqlDatabase()
The presence of the sentence "If this is the last QSqlDatabase object
that uses a certain database connection, the database connection is
automatically closed" is misleading, whether or not the statement is
true. It is about an internal detail of QSqlDatabase's implementation.
As such it is not appropriate for user documentation. The user should be
focused on how to use addDatabase(), cloneDatabase() and removeDatabase()
correctly.
Task-number: QTBUG-29481
Change-Id: I0c39584be260e13340834c34098368fcce4a7419
Reviewed-by: Florian Paul Schmidt <mista.tapas@gmx.net>
Reviewed-by: Sune Vuorela <sune@vuorela.dk>
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
(cherry picked from qtbase/0b8065b5819efd8ba3741ea5703d5b95954b16c2)
Diffstat (limited to 'src')
-rw-r--r-- | src/sql/kernel/qsqldatabase.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sql/kernel/qsqldatabase.cpp b/src/sql/kernel/qsqldatabase.cpp index 8591278..04056db 100644 --- a/src/sql/kernel/qsqldatabase.cpp +++ b/src/sql/kernel/qsqldatabase.cpp @@ -794,9 +794,6 @@ void QSqlDatabasePrivate::init(const QString &type) /*! Destroys the object and frees any allocated resources. - If this is the last QSqlDatabase object that uses a certain - database connection, the database connection is automatically closed. - \sa close() */ |