[prediction] for brackets {} convention apply. 77/57977/3
authorMarcin Masternak <m.masternak@samsung.com>
Tue, 2 Feb 2016 10:41:54 +0000 (11:41 +0100)
committerMarcin Masternak <m.masternak@samsung.com>
Tue, 2 Feb 2016 10:41:54 +0000 (11:41 +0100)
Change-Id: I0f29bfabf91155c1d2bed493f9886e9074c2fc3e
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
src/statistics/prediction/item_set.cpp

index c8dc55b..dccee66 100644 (file)
@@ -33,8 +33,9 @@ std::ostream& ctx::operator<<(std::ostream& out, const ctx::ItemSet& itemSet)
 
 bool ctx::itemset_includes_in(const ctx::ItemSet& small, const ctx::ItemSet& big)
 {
-       for (const Item& s : small)
+       for (const Item& s : small) {
                if (std::find(big.begin(), big.end(), s) == big.end())
                        return false;
+       }
        return true;
 }