explicitly compare latin1 strings in qassert (fixes build with debugfull)

This commit is contained in:
Harald Sitter 2013-08-07 09:25:27 +02:00
parent bd078d5c23
commit 2c915037c7

View file

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void DecorationPlugin::registerTypes(const char *uri) void DecorationPlugin::registerTypes(const char *uri)
{ {
Q_ASSERT(uri == QLatin1String("org.kde.kwin.decoration")); Q_ASSERT(QLatin1String(uri) == QLatin1String("org.kde.kwin.decoration"));
qmlRegisterType<ColorHelper>(uri, 0, 1, "ColorHelper"); qmlRegisterType<ColorHelper>(uri, 0, 1, "ColorHelper");
qmlRegisterType<KWin::DecorationOptions>(uri, 0, 1, "DecorationOptions"); qmlRegisterType<KWin::DecorationOptions>(uri, 0, 1, "DecorationOptions");
qmlRegisterType<KWin::Borders>(uri, 0, 1, "Borders"); qmlRegisterType<KWin::Borders>(uri, 0, 1, "Borders");