~ubuntu-branches/ubuntu/utopic/nepomuk-core/utopic

« back to all changes in this revision

Viewing changes to libnepomukcore/datamanagement/simpleresource.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-26 22:43:09 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120726224309-pf2v1e78ee7uljjp
Tags: 4:4.9.0a-0ubuntu1
* Use direct build-depends versions rather than kde-sc-dev-latest
* New upstream release
* New symbols, rename libnepomukcore4 to libnepomukcore4abi and enable Debian ABI manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
 
281
281
void Nepomuk2::SimpleResource::addProperties(const Nepomuk2::PropertyHash &properties)
282
282
{
283
 
    d->m_properties += properties;
 
283
    // This is done manually, so that we avoid duplicates
 
284
    // A multihash can contain the same <key, value> pairs multiple times
 
285
    QHashIterator<QUrl, QVariant> it(properties);
 
286
    while(it.hasNext()) {
 
287
        it.next();
 
288
        addProperty(it.key(), it.value());
 
289
    }
284
290
}
285
291
 
286
292
QVariantList Nepomuk2::SimpleResource::property(const QUrl &property) const