Skip to content

Commit

Permalink
R Fix warning C4459 in MSVC with /W4 - see #193
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 25, 2022
1 parent d97c8f1 commit f2825eb
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@

namespace ApprovalTests
{
// clang-format off
// begin-snippet: separate_approved_and_received_directory_names
auto path = "{TestSourceDirectory}/{ApprovalsSubdirectory}/{ApprovedOrReceived}/{TestFileName}.{TestCaseName}.{FileExtension}";
// end-snippet
// clang-format on
std::string separateDirectoryPath()
{
// clang-format off
// begin-snippet: separate_approved_and_received_directory_names
auto path = "{TestSourceDirectory}/{ApprovalsSubdirectory}/{ApprovedOrReceived}/{TestFileName}.{TestCaseName}.{FileExtension}";
// end-snippet
// clang-format on
return path;
}

SeparateApprovedAndReceivedDirectoriesNamer::
SeparateApprovedAndReceivedDirectoriesNamer()
: TemplatedCustomNamer(path)
: TemplatedCustomNamer(separateDirectoryPath())
{
}

Expand Down

0 comments on commit f2825eb

Please sign in to comment.