Skip to content

Commit

Permalink
Apply clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
humdingerb authored and github-actions[bot] committed Jul 15, 2024
1 parent 3f6eab4 commit 7d56c53
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
10 changes: 6 additions & 4 deletions src/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,8 +950,9 @@ Database::GetTransferDestination(const uint32& transid, const uint32& accountid)
LOCK;

BString command;
command.SetToFormat("SELECT accountid FROM transactionlist WHERE transid = %i AND "
"accountid != %i;",
command.SetToFormat(
"SELECT accountid FROM transactionlist WHERE transid = %i AND "
"accountid != %i;",
transid, accountid);
CppSQLite3Query query
= DBQuery(command.String(), "Database::GetTransferDestination:get accountid");
Expand Down Expand Up @@ -1067,8 +1068,9 @@ Database::GetScheduledTransaction(const uint32& transid, ScheduledTransData& dat
BString command;
CppSQLite3Query query;

command = "SELECT accountid,date,payee,amount,category,memo,type,nextdate,"
"count,interval,destination FROM scheduledlist WHERE transid = ";
command
= "SELECT accountid,date,payee,amount,category,memo,type,nextdate,"
"count,interval,destination FROM scheduledlist WHERE transid = ";
command << transid << ";";
query = DBQuery(command.String(), "Database::GetScheduledTransaction:get transaction data");

Expand Down
3 changes: 2 additions & 1 deletion src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ MainWindow::MessageReceived(BMessage* msg)
destAccount = gDatabase.GetTransferDestination(data.GetID(), acc->GetID());
if (destAccount < 0) {
ShowAlert(B_TRANSLATE("Scheduling error"),
B_TRANSLATE("Transfers generated by scheduling cannot be scheduled themselves."));
B_TRANSLATE(
"Transfers generated by scheduling cannot be scheduled themselves."));
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/ScheduledExecutor.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <Catalog.h>
#include "Database.h"
#include "ScheduledTransData.h"
#include "TimeSupport.h"
#include <Catalog.h>


void
Expand Down
26 changes: 12 additions & 14 deletions src/ScheduledTransData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ ScheduledTransData::ScheduledTransData(void)
ScheduledTransData::ScheduledTransData(Account* account, const char* date, const char* type,
const char* payee, const char* amount, const char* category, const char* memo,
const TransactionInterval& interval, const int32& count)
:
TransactionData(account, date, type, payee, amount, category, memo, TRANS_OPEN),
fInterval(interval),
fCount(count),
fNextDate(0),
fDestination(-1)
: TransactionData(account, date, type, payee, amount, category, memo, TRANS_OPEN),
fInterval(interval),
fCount(count),
fNextDate(0),
fDestination(-1)
{
}

Expand All @@ -28,14 +27,13 @@ ScheduledTransData::ScheduledTransData(const ScheduledTransData& trans)
}


ScheduledTransData::ScheduledTransData(const TransactionData& data,
const TransactionInterval& interval, const int32& count)
:
TransactionData(data),
fInterval(interval),
fCount(count),
fNextDate(0),
fDestination(-1)
ScheduledTransData::ScheduledTransData(
const TransactionData& data, const TransactionInterval& interval, const int32& count)
: TransactionData(data),
fInterval(interval),
fCount(count),
fNextDate(0),
fDestination(-1)
{
}

Expand Down
4 changes: 2 additions & 2 deletions src/TransactionData.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#ifndef TRANSACTIONDATA_H
#define TRANSACTIONDATA_H

#include <String.h>
#include <cstdio>
#include "Category.h"
#include "Fixed.h"
#include "TextFile.h"
#include "Transaction.h"
#include <String.h>
#include <cstdio>

class TransactionData {
public:
Expand Down

0 comments on commit 7d56c53

Please sign in to comment.