]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
Typo.
[lyx.git] / src / LyX.cpp
index 6b46066e084b91aa687d6b0748f29122fcd05990..d872b81d1921fe7e9a790815cea298e3a2a47fe3 100644 (file)
@@ -340,7 +340,7 @@ int LyX::exec(int & argc, char * argv[])
                        vector<string>::const_iterator bcit  = pimpl_->batch_commands.begin();
                        vector<string>::const_iterator bcend = pimpl_->batch_commands.end();
                        DispatchResult dr;
-                       for (; bcit != bcend; bcit++) {
+                       for (; bcit != bcend; ++bcit) {
                                LYXERR(Debug::ACTION, "Buffer::dispatch: cmd: " << *bcit);
                                buf->dispatch(*bcit, dr);
                                final_success |= !dr.error();
@@ -587,7 +587,7 @@ void LyX::execCommands()
 
        vector<string>::const_iterator bcit  = pimpl_->batch_commands.begin();
        vector<string>::const_iterator bcend = pimpl_->batch_commands.end();
-       for (; bcit != bcend; bcit++) {
+       for (; bcit != bcend; ++bcit) {
                LYXERR(Debug::INIT, "About to handle -x '" << *bcit << '\'');
                lyx::dispatch(lyxaction.lookupFunc(*bcit));
        }