[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdesupport/soprano/backends/virtuoso
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-04-08 10:56:47
Message-ID: 20100408105647.D7EEAAC88F () svn ! kde ! org
[Download RAW message or body]
SVN commit 1112501 by trueg:
Use QLatin1String
M +2 -3 virtuosoqueryresultiteratorbackend.cpp
--- trunk/kdesupport/soprano/backends/virtuoso/virtuosoqueryresultiteratorbackend.cpp #1112500:1112501
@@ -56,11 +56,10 @@
d->bindingCachedFlags = QBitArray( d->bindingNames.count(), false );
d->bindingCache.resize( d->bindingNames.count() );
-
// ASK queries are rather easy to detect
// =====================================
if ( d->bindingNames.count() == 1 &&
- d->bindingNames[0] == "__ASK_RETVAL" ) {
+ d->bindingNames[0] == QLatin1String( "__ASK_RETVAL" ) ) {
d->m_resultType = QueryResultIteratorBackendPrivate::AskResult;
// cache the result
// virtuoso returns an empty result set for false boolean results
@@ -78,7 +77,7 @@
// Graph queries are a little trickier
// =====================================
else if ( d->bindingNames.count() == 1 &&
- d->bindingNames[0] == "callret-0" ) {
+ d->bindingNames[0] == QLatin1String( "callret-0" ) ) {
if ( d->m_queryResult->fetchRow() ) {
Node node = d->m_queryResult->getData( 1 );
if ( !d->m_queryResult->lastError() ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic