[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-05-28 19:14:31
Message-ID: 20100528191431.7DF2DAC8C1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1131713 by trueg:
Make use of the multi-parameter QString::arg method to avoid replacing in replace \
strings.
BUG: 239887
M +5 -5 virtuosomodel.cpp
--- trunk/kdesupport/soprano/backends/virtuoso/virtuosomodel.cpp #1131712:1131713
@@ -301,9 +301,9 @@
}
else {
query = QString::fromLatin1( "delete from %1 { %2 } where { %3 }" )
- .arg( statement.context().isValid() ? statement.context().toN3() \
: QString( "?g" ) )
- .arg( statementToConstructGraphPattern( statement, false ) )
- .arg( statementToConstructGraphPattern( statement, true ) );
+ .arg( statement.context().isValid() ? statement.context().toN3() \
: QString( "?g" ), + statementToConstructGraphPattern( \
statement, false ), + statementToConstructGraphPattern( \
statement, true ) );
}
// qDebug() << "removeAllStatements query:" << query;
@@ -323,8 +323,8 @@
else {
// FIXME: do this in a fancy way, maybe an inner sql query or something
QList<Node> allContexts = executeQuery( QString::fromLatin1( "select \
distinct ?g where { %1 . FILTER(?g != <%2>) . }" )
- .arg( \
statementToConstructGraphPattern( statement, true ) )
- .arg( QLatin1String( \
Virtuoso::openlinkVirtualGraphString() ) ) ) + \
.arg( statementToConstructGraphPattern( statement, true ), + \
QLatin1String( Virtuoso::openlinkVirtualGraphString() ) ) )
.iterateBindings( 0 ).allNodes();
foreach( const Node& node, allContexts ) {
Statement s( statement );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic