[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/nepomuk/services/strigi
From: Vishesh Handa <handa.vish () gmail ! com>
Date: 2010-07-26 9:11:49
Message-ID: 20100726091149.4A811AC867 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1154787 by vhanda:
Added handling of blank objects in the IndexWriter.
M +3 -1 nepomukindexwriter.cpp
--- trunk/KDE/kdebase/runtime/nepomuk/services/strigi/nepomukindexwriter.cpp #1154786:1154787
@@ -225,7 +225,9 @@
Soprano::LiteralValue RegisteredFieldData::createLiteralValue( const std::string& value )
{
- QString s = QString::fromUtf8( ( const char* )value.c_str(), value.length() );
+ QString s = QString::fromUtf8( ( const char* )value.c_str(), value.length() ).trimmed();
+ if( s.isEmpty() )
+ return Soprano::LiteralValue();
// This is a workaround for a Strigi bug which sometimes stores datatime values as strings
// but the format is not supported by Soprano::LiteralValue
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic