summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qprinterinfo.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2010-12-01 11:28:32 (GMT)
committeraxis <qt-info@nokia.com>2010-12-20 15:14:39 (GMT)
commit1d6266e751d6b23a15f56bc21c503fe1a71da975 (patch)
tree752fca1b67fc5787bc835ea4450cb329a5bd6cc5 /src/gui/painting/qprinterinfo.cpp
parent50af3716c956be0f50fdd896925da7af91d5da2c (diff)
downloadQt-1d6266e751d6b23a15f56bc21c503fe1a71da975.zip
Qt-1d6266e751d6b23a15f56bc21c503fe1a71da975.tar.gz
Qt-1d6266e751d6b23a15f56bc21c503fe1a71da975.tar.bz2
get rid of QPrinterInfoPrivate::isNull member
invalid QPrinterInfo always have d_ptr == &QPrinterInfoPrivate::shared_null; no need in separate flag for that Merge-request: 2516 Signed-off-by: axis
Diffstat (limited to 'src/gui/painting/qprinterinfo.cpp')
-rw-r--r--src/gui/painting/qprinterinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprinterinfo.cpp b/src/gui/painting/qprinterinfo.cpp
index 21d56f3..72f8be3 100644
--- a/src/gui/painting/qprinterinfo.cpp
+++ b/src/gui/painting/qprinterinfo.cpp
@@ -146,7 +146,7 @@ QString QPrinterInfo::printerName() const
bool QPrinterInfo::isNull() const
{
const Q_D(QPrinterInfo);
- return d->isNull;
+ return d == &QPrinterInfoPrivate::shared_null;
}
/*!