From 343fa96a0d05e923393c3437519381ceaaffa35d Mon Sep 17 00:00:00 2001 From: caotto Date: Wed, 16 Jan 2013 13:00:07 -0500 Subject: [PATCH] Workaround for a mysterious visual studio debug mode issue. --- sdk/openbr_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/openbr_plugin.cpp b/sdk/openbr_plugin.cpp index a2b6895..ddf61d7 100644 --- a/sdk/openbr_plugin.cpp +++ b/sdk/openbr_plugin.cpp @@ -647,7 +647,9 @@ int br::Context::blocks(int size) const bool br::Context::contains(const QString &name) { - const char *c_name = qPrintable(name); + QByteArray bytes = name.toLocal8Bit + const char * c_name = bytes.constData(); + for (int i=0; ipropertyCount(); i++) if (!strcmp(c_name, metaObject()->property(i).name())) return true; -- libgit2 0.21.4