From 67f20d96bc7ceb7add7b42c20099d72346563865 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 4 Aug 2013 15:56:17 -0400 Subject: [PATCH] Code Cleanup - Fixed typo, for consistency. --- src/commands/CmdSync.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/commands/CmdSync.cpp b/src/commands/CmdSync.cpp index d5d94c72d..e6d462f10 100644 --- a/src/commands/CmdSync.cpp +++ b/src/commands/CmdSync.cpp @@ -151,7 +151,7 @@ int CmdSync::execute (std::string& output) if (lines.size () > 1) context.tdb2.all_tasks (); - std::string synch_key = ""; + std::string sync_key = ""; std::vector ::iterator line; for (line = lines.begin (); line != lines.end (); ++line) { @@ -187,22 +187,22 @@ int CmdSync::execute (std::string& output) } else if (*line != "") { - synch_key = *line; - context.debug ("Synch key " + synch_key); + sync_key = *line; + context.debug ("Sync key " + sync_key); } // Otherwise line is blank, so ignore it. } - // Only update everything if there is a new synch_key. No synch_key means + // Only update everything if there is a new sync_key. No sync_key means // something horrible happened on the other end of the wire. - if (synch_key != "") + if (sync_key != "") { - // Truncate backlog.data, save new synch_key. + // Truncate backlog.data, save new sync_key. context.tdb2.backlog._file.truncate (); context.tdb2.backlog.clear_tasks (); context.tdb2.backlog.clear_lines (); - context.tdb2.backlog.add_line (synch_key + "\n"); + context.tdb2.backlog.add_line (sync_key + "\n"); // Commit all changes. context.tdb2.commit ();