src/housemarkermodel.cpp
// use a set to eliminate duplicates

use a set to eliminate duplicates
use a set to eliminate duplicates
foreach (const HouseMarker& house, aHouseTrail) {
        if (!this->contains(house)) {
            newHouses.insert(house);
        }
    }
foreach ( const HouseMarker & house , aHouseTrail ) { if ( ! this -> contains ( house ) ) { newHouses . insert ( house ) ; } }
use a set to eliminate duplicates
use a set to eliminate duplicates