diff options
| author | Hennadii Stepanov <[email protected]> | 2020-06-18 15:30:15 +0300 |
|---|---|---|
| committer | Hennadii Stepanov <[email protected]> | 2020-06-18 15:30:15 +0300 |
| commit | 25f3554351a99a0a695fbd2a6a0f293b3adc3d98 (patch) | |
| tree | 496f3447df4088195a8a699a843ca71bf0b8dd46 /src/httpserver.cpp | |
| parent | Merge #19304: test: Check that message sends successfully when header is spli... (diff) | |
| download | discoin-25f3554351a99a0a695fbd2a6a0f293b3adc3d98.tar.xz discoin-25f3554351a99a0a695fbd2a6a0f293b3adc3d98.zip | |
scripted-diff: Make SeparatorStyle a scoped enum
-BEGIN VERIFY SCRIPT-
# General rename helper: $1 -> $2
rename_global() { sed -i "s/\<$1\>/$2/g" $(git grep -l "$1"); }
# Helper to rename SeparatorStyle enumerators
rename_value() {
sed -i "s/ $1/ $2/g" src/qt/bitcoinunits.h;
rename_global $1 "SeparatorStyle::$2";
}
rename_global 'enum SeparatorStyle' 'enum class SeparatorStyle'
rename_value 'separatorNever' 'NEVER'
rename_value 'separatorStandard' 'STANDARD'
rename_value 'separatorAlways' 'ALWAYS'
-END VERIFY SCRIPT-
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions