Skip to content

Commit

Permalink
TD: Remove incorrect TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz authored Apr 13, 2024
1 parent f1c7d38 commit d0319b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/TechDraw/App/DrawUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ std::string DrawUtil::getGeomTypeFromName(const std::string& geomName)
std::stringstream ErrorMsg;

if (boost::regex_search(begin, end, what, re, flags)) {
return what.str();//TODO: use std::stoi() in c++11
return what.str();
} else {

Check warning on line 124 in src/Mod/TechDraw/App/DrawUtil.cpp

View workflow job for this annotation

GitHub Actions / Lint / Lint

do not use 'else' after 'return' [readability-else-after-return]
ErrorMsg << "In getGeomTypeFromName: malformed geometry name - " << geomName;
throw Base::ValueError(ErrorMsg.str());
Expand Down

0 comments on commit d0319b0

Please sign in to comment.