summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qtextboundaryfinder.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-03-21 13:51:51 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-23 01:55:58 +0100
commitcaffabc79833c6378365fabd589187224fb1c0cc (patch)
treedb5c7dcff69167b44a26d43d811044d7c213be3c /src/corelib/tools/qtextboundaryfinder.cpp
parent1622dca213573ea7926d0aada2635a2dfad1fe35 (diff)
Mark Q_UNUSED the private members that aren't used
Apple Clang 4.2 has a new warning, letting you know when a private member isn't used by any member function (and, I guess, if the class has no friends): private field 'd' is not used [-Werror,-Wunused-private-field] Qt has a few of those for future expansion. It's not an error for us. Change-Id: Id2edb1159589572f97a07f93181c9c96c5dd983c Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/tools/qtextboundaryfinder.cpp')
-rw-r--r--src/corelib/tools/qtextboundaryfinder.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/tools/qtextboundaryfinder.cpp b/src/corelib/tools/qtextboundaryfinder.cpp
index eb861b7289..7b8fbebb22 100644
--- a/src/corelib/tools/qtextboundaryfinder.cpp
+++ b/src/corelib/tools/qtextboundaryfinder.cpp
@@ -229,6 +229,7 @@ QTextBoundaryFinder &QTextBoundaryFinder::operator=(const QTextBoundaryFinder &o
*/
QTextBoundaryFinder::~QTextBoundaryFinder()
{
+ Q_UNUSED(unused);
if (freePrivate)
free(d);
}