Skip to content

Commit

Permalink
pass shared_ptr by value
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed May 13, 2024
1 parent 6e58a74 commit 72cc644
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OdbDesignLib/App/DesignCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace Odb::Lib::App
return m_fileArchivesByName[designName];
}

void DesignCache::AddFileArchive(const std::string& designName, const std::shared_ptr<FileModel::Design::FileArchive>& fileArchive, bool save)
void DesignCache::AddFileArchive(const std::string& designName, std::shared_ptr<FileModel::Design::FileArchive> fileArchive, bool save)
{
m_fileArchivesByName[designName] = fileArchive;
if (save)
Expand Down
2 changes: 1 addition & 1 deletion OdbDesignLib/App/DesignCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Odb::Lib::App
std::shared_ptr<ProductModel::Design> GetDesign(const std::string& designName);
std::shared_ptr<FileModel::Design::FileArchive> GetFileArchive(const std::string& designName);

void AddFileArchive(const std::string& designName, const std::shared_ptr<FileModel::Design::FileArchive>& fileArchive, bool save);
void AddFileArchive(const std::string& designName, std::shared_ptr<FileModel::Design::FileArchive> fileArchive, bool save);

bool SaveFileArchive(const std::string& designName);

Expand Down

0 comments on commit 72cc644

Please sign in to comment.