Skip to content

Commit

Permalink
B!! Fix compilation warning on clang13 (#194)
Browse files Browse the repository at this point in the history
Co-Authored-By: Llewellyn Falco <[email protected]>
  • Loading branch information
claremacrae and isidore committed Feb 22, 2022
1 parent d12c815 commit 4e3bd17
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions ApprovalTests/namers/ExistingFileNamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ namespace ApprovalTests
{
}

ExistingFileNamer::ExistingFileNamer(const ExistingFileNamer& x)
: filePath(x.filePath), options_(x.options_)
{
}

ExistingFileNamer::ExistingFileNamer(ExistingFileNamer&& x) noexcept
: filePath(std::move(x.filePath)), options_(x.options_)
{
}

std::string ExistingFileNamer::getApprovedFile(std::string extensionWithDot) const
{
return options_.getNamer()->getApprovedFile(extensionWithDot);
Expand Down
6 changes: 4 additions & 2 deletions ApprovalTests/namers/ExistingFileNamer.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ namespace ApprovalTests

public:
explicit ExistingFileNamer(std::string filePath_, const Options& options);
ExistingFileNamer(const ExistingFileNamer&) = default;
ExistingFileNamer(ExistingFileNamer&&) = default;

ExistingFileNamer(const ExistingFileNamer& x);

ExistingFileNamer(ExistingFileNamer&& x) noexcept;

virtual std::string getApprovedFile(std::string extensionWithDot) const override;

Expand Down

0 comments on commit 4e3bd17

Please sign in to comment.