]> git.tdb.fi Git - libs/core.git/blobdiff - transcode.cpp
Further style and comment adjustments
[libs/core.git] / transcode.cpp
index bba64abe6a5429d5f4cbbab00d0785d245935b22..cfa24a911446605b6b260c7cb7b3579c9866b01b 100644 (file)
@@ -14,16 +14,16 @@ int main(int argc, char **argv)
                return 1;
        }
 
-       Codecs::Codec *from=Codecs::create_codec(argv[1]);
-       Codecs::Codec *to=Codecs::create_codec(argv[2]);
+       Codecs::Codec *from = Codecs::create_codec(argv[1]);
+       Codecs::Codec *to = Codecs::create_codec(argv[2]);
 
-       Codecs::Decoder *from_dec=from->create_decoder(Codecs::TRANSLITERATE);
-       Codecs::Encoder *to_enc=to->create_encoder(Codecs::TRANSLITERATE);
+       Codecs::Decoder *from_dec = from->create_decoder(Codecs::TRANSLITERATE);
+       Codecs::Encoder *to_enc = to->create_encoder(Codecs::TRANSLITERATE);
 
        string line;
        while(getline(cin, line))
        {
-               line+='\n';
+               line += '\n';
                Codecs::ustring ustr;
                from_dec->decode(line, ustr);
                string result;