| http://www.w3.org/ns/prov#value | - are prompted to enter the constant name and to choose the visibilty, and finally we get:namespace { const int Step_ = 100;}...void BaseClass::myMethod(int arg){ arg += Step_;}void BaseClass::myMethod2(int arg){ arg += Step_;}More convenient than search and replace.Extract FunctionThis is the most complicated refactoring.
|