Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TechDraw: use c++11 compatible code in TechDraw/App/DrawUtil.cpp #13410

Closed
luzpaz opened this issue Apr 11, 2024 · 3 comments · Fixed by #13441
Closed

TechDraw: use c++11 compatible code in TechDraw/App/DrawUtil.cpp #13410

luzpaz opened this issue Apr 11, 2024 · 3 comments · Fixed by #13441
Labels
Coding: C++ Coding issue related to C++ Good first issue Suitable issues for potential first-time contributors Refactor PRs that only refactor code WB TechDraw Related to the TechDraw Workbench

Comments

@luzpaz
Copy link
Contributor

luzpaz commented Apr 11, 2024

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

@luzpaz luzpaz added WB TechDraw Related to the TechDraw Workbench Refactor PRs that only refactor code Coding: C++ Coding issue related to C++ Good first issue Suitable issues for potential first-time contributors labels Apr 11, 2024
@WandererFan
Copy link
Contributor

The comment looks like a cut and paste error from getIndexFromName. getGeomTypeFromName returns a string, so there is no conversion to integer required.

@luzpaz
Copy link
Contributor Author

luzpaz commented Apr 11, 2024

@WandererFan should i delete the comment then ?

@WandererFan
Copy link
Contributor

Yes please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Coding: C++ Coding issue related to C++ Good first issue Suitable issues for potential first-time contributors Refactor PRs that only refactor code WB TechDraw Related to the TechDraw Workbench
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants