Skip to content

Commit

Permalink
Fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jan 9, 2025
1 parent 6fa811a commit 74a18b9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cpp/src/Slice/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3033,6 +3033,8 @@ Slice::InterfaceDef::createOperation(
bool
Slice::InterfaceDef::checkBaseOperationNames(const string& name, const vector<string>& baseNames)
{
string nameInLowercase = IceInternal::toLower(name);

for (const auto& baseName : baseNames)
{
if (baseName == name)
Expand All @@ -3043,9 +3045,9 @@ Slice::InterfaceDef::checkBaseOperationNames(const string& name, const vector<st
return false;
}

string baseName2 = IceInternal::toLower(baseName);
string newName2 = IceInternal::toLower(name);
if (baseName2 == newName2)
string baseNameInLowercase = IceInternal::toLower(baseName);

if (baseNameInLowercase == nameInLowercase)
{
ostringstream os;
os << "operation `" << name << "' differs only in capitalization from operation"
Expand Down

0 comments on commit 74a18b9

Please sign in to comment.