X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=grep.cpp;fp=grep.cpp;h=68ecf874f46b919306c703f5e6fc07c2af4b5249;hp=0a3cd8d236bb7ebd8c96c7953fc5ad6d2ebff339;hb=5b1368cb791cab043f0435628cacbaff36e39b7b;hpb=36f9e78ae75f5e14b132f37d249340ad3480b8ce diff --git a/grep.cpp b/grep.cpp index 0a3cd8d..68ecf87 100644 --- a/grep.cpp +++ b/grep.cpp @@ -9,12 +9,12 @@ using namespace Msp; int main(int argc, char **argv) { - bool debug=false; + bool debug = false; GetOpt getopt; getopt.add_option('d', "debug", debug, GetOpt::NO_ARG); getopt(argc, argv); - const vector &args=getopt.get_args(); + const vector &args = getopt.get_args(); if(args.empty()) { @@ -28,7 +28,7 @@ int main(int argc, char **argv) string line; while(getline(cin, line)) { - if(RegMatch match=regex.match(line)) + if(RegMatch match = regex.match(line)) cout<