Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2015, 5:38:21 PM (9 years ago)
Author:
landauf
Message:

use std::make_shared for better performance with shared_ptr

File:
1 edited

Legend:

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

    r10771 r10772  
    9595            if (it->filename == name)
    9696            {
    97                 std::shared_ptr<ResourceInfo> ptr(new ResourceInfo());
     97                std::shared_ptr<ResourceInfo> ptr(std::make_shared<ResourceInfo>());
    9898                ptr->filename = name;
    9999                ptr->path = it->path;
Note: See TracChangeset for help on using the changeset viewer.