X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=grep.cpp;h=c87ee72171615ec8056adcf687f8f0e74d78b621;hp=0a3cd8d236bb7ebd8c96c7953fc5ad6d2ebff339;hb=e240e074ce15c17d644e378067c2941aefcd5611;hpb=1493ea58d7f0bbf38a92cc166e9d07be3acebbc9 diff --git a/grep.cpp b/grep.cpp index 0a3cd8d..c87ee72 100644 --- a/grep.cpp +++ b/grep.cpp @@ -1,4 +1,3 @@ -/* $Id$ */ #include #include #include @@ -9,12 +8,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 +27,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<