~thomas-voss/location-service/fix-settings-not-being-applied

« back to all changes in this revision

Viewing changes to src/location_service/com/ubuntu/location/default_provider_set.cpp

  • Committer: Thomas Voß
  • Date: 2013-05-28 14:20:45 UTC
  • Revision ID: thomas.voss@canonical.com-20130528142045-kq5umqdmm4o53vwk
Initial push.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "com/ubuntu/location/default_provider_set.h"
 
2
 
 
3
#include "com/ubuntu/location/provider.h"
 
4
 
 
5
#include <set>
 
6
 
 
7
namespace cul = com::ubuntu::location;
 
8
 
 
9
std::set<cul::Provider::Ptr> cul::default_provider_set(const cul::Provider::Ptr& seed)
 
10
{
 
11
    std::set<cul::Provider::Ptr> result{};
 
12
    if (seed)
 
13
        result.insert(seed);
 
14
 
 
15
    return result;
 
16
}