Remove `##` and everything after it from the string. If the string doesn't contain it, return sit unchanged.
| 27 | // Remove `##` and everything after it from the string. |
| 28 | // If the string doesn't contain it, return sit unchanged. |
| 29 | static std::string trimHashHashSuffix( std::string str ) |
| 30 | { |
| 31 | if ( auto sep = str.find( "##" ); sep != std::string::npos ) |
| 32 | str.resize( sep ); |
| 33 | return str; |
| 34 | } |
| 35 | |
| 36 | UndoMenuItem::UndoMenuItem() : |
| 37 | RibbonMenuItem( "Undo" ) |
no test coverage detected