Details
-
Suggestion
-
Resolution: Fixed
-
P3: Somewhat important
-
None
Description
This week I've gone through some old C/C++ code. The code has used some old enums together with int-typed variables. To improve the stuff I've changed the enums to 'enum class' and inserted the enum type before each usage of one of the enum literals.
I.e.
enum Foo {
Val1, Val2, Val3
};
together with e.g.
int bar = Val1;
got changed to
enum class Foo { Val1, Val2, Val3 };
and
int bar = Foo::Val1;
Since I talk about quite a lot of enum literals it would have been helpful if QtC is able to do the refactoring by itself.