mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Unify coding style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
159b8c642a
commit
7b4a234f03
64 changed files with 201 additions and 206 deletions
|
@ -39,7 +39,7 @@ bool Journal::enabled () const
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
std::vector<Transaction> loadJournal (AtomicFile& undo)
|
||||
std::vector <Transaction> loadJournal (AtomicFile& undo)
|
||||
{
|
||||
std::vector <std::string> read_lines;
|
||||
undo.read (read_lines);
|
||||
|
@ -88,7 +88,7 @@ void Journal::startTransaction ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Journal::endTransaction ()
|
||||
{
|
||||
if (!enabled ())
|
||||
if (! enabled ())
|
||||
{
|
||||
assert (_currentTransaction == nullptr);
|
||||
return;
|
||||
|
@ -149,9 +149,9 @@ void Journal::recordIntervalAction (const std::string& before, const std::strin
|
|||
// Actions are only recorded if a transaction is open
|
||||
//
|
||||
void Journal::recordUndoAction (
|
||||
const std::string &type,
|
||||
const std::string &before,
|
||||
const std::string &after)
|
||||
const std::string& type,
|
||||
const std::string& before,
|
||||
const std::string& after)
|
||||
{
|
||||
if (enabled () && _currentTransaction != nullptr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue