Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2015, 7:10:56 PM (8 years ago)
Author:
muemart
Message:

Use emplace_back instead of push_back if beneficial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/ConfigurablePaths.cc

    r10817 r10918  
    145145        // Create directories to avoid problems when opening files in non existent folders.
    146146        std::vector<std::pair<bf::path, std::string>> directories;
    147         directories.push_back(std::make_pair(bf::path(configPath_), std::string("config")));
    148         directories.push_back(std::make_pair(bf::path(logPath_), std::string("log")));
     147        directories.emplace_back(bf::path(configPath_), std::string("config"));
     148        directories.emplace_back(bf::path(logPath_), std::string("log"));
    149149
    150150        for (std::vector<std::pair<bf::path, std::string>>::iterator it = directories.begin();
Note: See TracChangeset for help on using the changeset viewer.