Skip to content

Commit

Permalink
OrcCommand: GetThis: replace 'enum ContentType' with 'enum class'
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Nov 9, 2020
1 parent f3cf6af commit b85db17
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/OrcCommand/GetThis_Run.cpp
Expand Up @@ -229,13 +229,13 @@ HRESULT Main::CreateSampleFileName(

switch (content.Type)
{
case DATA:
case ContentType::DATA:
pContent = L"data";
break;
case STRINGS:
case ContentType::STRINGS:
pContent = L"strings";
break;
case RAW:
case ContentType::RAW:
pContent = L"raw";
break;
default:
Expand Down Expand Up @@ -351,10 +351,10 @@ HRESULT Main::ConfigureSampleStreams(SampleRef& sampleRef)

switch (sampleRef.Content.Type)
{
case DATA:
case ContentType::DATA:
stream = sampleRef.Matches.front()->MatchingAttributes[sampleRef.AttributeIndex].DataStream;
break;
case STRINGS: {
case ContentType::STRINGS: {
auto strings = std::make_shared<StringsStream>(_L_);
if (sampleRef.Content.MaxChars == 0 && sampleRef.Content.MinChars == 0)
{
Expand Down Expand Up @@ -383,7 +383,7 @@ HRESULT Main::ConfigureSampleStreams(SampleRef& sampleRef)
stream = strings;
}
break;
case RAW:
case ContentType::RAW:
stream = sampleRef.Matches.front()->MatchingAttributes[sampleRef.AttributeIndex].RawStream;
break;
default:
Expand Down Expand Up @@ -517,10 +517,10 @@ Main::AddSampleRefToCSV(ITableOutput& output, const std::wstring& strComputerNam

switch (sample.Content.Type)
{
case DATA:
case ContentType::DATA:
output.WriteString(L"data");
break;
case STRINGS:
case ContentType::STRINGS:
output.WriteString(L"strings");
break;
default:
Expand Down

0 comments on commit b85db17

Please sign in to comment.