diff --git a/src/BudgetWindow.cpp b/src/BudgetWindow.cpp index 5135193..40dc3f6 100644 --- a/src/BudgetWindow.cpp +++ b/src/BudgetWindow.cpp @@ -777,9 +777,9 @@ BudgetWindow::BuildBudgetSummary(void) fSummarySpendingRow->SetField(new BStringField(""), i + 1); fSummaryTotalRow->SetField(new BStringField(""), i + 1); } - fBudgetSummary->AddColumn( - new BStringColumn(B_TRANSLATE("Total"), fBudgetSummary->StringWidth(B_TRANSLATE("Total")) + 20, - 10, 300, B_TRUNCATE_END, B_ALIGN_RIGHT), + fBudgetSummary->AddColumn(new BStringColumn(B_TRANSLATE("Total"), + fBudgetSummary->StringWidth(B_TRANSLATE("Total")) + 20, 10, 300, + B_TRUNCATE_END, B_ALIGN_RIGHT), 13); fSummaryIncomeRow->SetField(new BStringField(""), 13); fSummarySpendingRow->SetField(new BStringField(""), 13); diff --git a/src/CppSQLite3.cpp b/src/CppSQLite3.cpp index c9f55d0..3824f46 100644 --- a/src/CppSQLite3.cpp +++ b/src/CppSQLite3.cpp @@ -433,7 +433,6 @@ CppSQLite3Query::getFloatField(int nField, double fNullValue /*=0.0*/) } - double CppSQLite3Query::getFloatField(const char* szField, double fNullValue /*=0.0*/) { @@ -442,7 +441,6 @@ CppSQLite3Query::getFloatField(const char* szField, double fNullValue /*=0.0*/) } - const char* CppSQLite3Query::getStringField(int nField, const char* szNullValue /*=""*/) { @@ -454,7 +452,6 @@ CppSQLite3Query::getStringField(int nField, const char* szNullValue /*=""*/) } - const char* CppSQLite3Query::getStringField(const char* szField, const char* szNullValue /*=""*/) { @@ -463,7 +460,6 @@ CppSQLite3Query::getStringField(const char* szField, const char* szNullValue /*= } - const unsigned char* CppSQLite3Query::getBlobField(int nField, int& nLen) { @@ -479,7 +475,6 @@ CppSQLite3Query::getBlobField(int nField, int& nLen) } - const unsigned char* CppSQLite3Query::getBlobField(const char* szField, int& nLen) { @@ -488,7 +483,6 @@ CppSQLite3Query::getBlobField(const char* szField, int& nLen) } - bool CppSQLite3Query::fieldIsNull(int nField) { @@ -496,7 +490,6 @@ CppSQLite3Query::fieldIsNull(int nField) } - bool CppSQLite3Query::fieldIsNull(const char* szField) { @@ -505,7 +498,6 @@ CppSQLite3Query::fieldIsNull(const char* szField) } - int CppSQLite3Query::fieldIndex(const char* szField) { @@ -525,7 +517,6 @@ CppSQLite3Query::fieldIndex(const char* szField) } - const char* CppSQLite3Query::fieldName(int nCol) { @@ -540,7 +531,6 @@ CppSQLite3Query::fieldName(int nCol) } - const char* CppSQLite3Query::fieldDeclType(int nCol) { @@ -555,7 +545,6 @@ CppSQLite3Query::fieldDeclType(int nCol) } - int CppSQLite3Query::fieldDataType(int nCol) { @@ -570,7 +559,6 @@ CppSQLite3Query::fieldDataType(int nCol) } - bool CppSQLite3Query::eof() { @@ -579,7 +567,6 @@ CppSQLite3Query::eof() } - void CppSQLite3Query::nextRow() { @@ -601,7 +588,6 @@ CppSQLite3Query::nextRow() } - void CppSQLite3Query::finalize() { @@ -616,7 +602,6 @@ CppSQLite3Query::finalize() } - void CppSQLite3Query::checkVM() { @@ -662,7 +647,6 @@ CppSQLite3Table::~CppSQLite3Table() } - CppSQLite3Table& CppSQLite3Table::operator=(const CppSQLite3Table& rTable) { @@ -680,7 +664,6 @@ CppSQLite3Table::operator=(const CppSQLite3Table& rTable) } - void CppSQLite3Table::finalize() { @@ -691,7 +674,6 @@ CppSQLite3Table::finalize() } - int CppSQLite3Table::numFields() { @@ -700,7 +682,6 @@ CppSQLite3Table::numFields() } - int CppSQLite3Table::numRows() { @@ -709,7 +690,6 @@ CppSQLite3Table::numRows() } - const char* CppSQLite3Table::fieldValue(int nField) { @@ -725,7 +705,6 @@ CppSQLite3Table::fieldValue(int nField) } - const char* CppSQLite3Table::fieldValue(const char* szField) { @@ -744,7 +723,6 @@ CppSQLite3Table::fieldValue(const char* szField) } - int CppSQLite3Table::getIntField(int nField, int nNullValue /*=0*/) { @@ -756,7 +734,6 @@ CppSQLite3Table::getIntField(int nField, int nNullValue /*=0*/) } - int CppSQLite3Table::getIntField(const char* szField, int nNullValue /*=0*/) { @@ -768,7 +745,6 @@ CppSQLite3Table::getIntField(const char* szField, int nNullValue /*=0*/) } - double CppSQLite3Table::getFloatField(int nField, double fNullValue /*=0.0*/) { @@ -780,7 +756,6 @@ CppSQLite3Table::getFloatField(int nField, double fNullValue /*=0.0*/) } - double CppSQLite3Table::getFloatField(const char* szField, double fNullValue /*=0.0*/) { @@ -792,7 +767,6 @@ CppSQLite3Table::getFloatField(const char* szField, double fNullValue /*=0.0*/) } - const char* CppSQLite3Table::getStringField(int nField, const char* szNullValue /*=""*/) { @@ -804,7 +778,6 @@ CppSQLite3Table::getStringField(int nField, const char* szNullValue /*=""*/) } - const char* CppSQLite3Table::getStringField(const char* szField, const char* szNullValue /*=""*/) { @@ -816,7 +789,6 @@ CppSQLite3Table::getStringField(const char* szField, const char* szNullValue /*= } - bool CppSQLite3Table::fieldIsNull(int nField) { @@ -825,7 +797,6 @@ CppSQLite3Table::fieldIsNull(int nField) } - bool CppSQLite3Table::fieldIsNull(const char* szField) { @@ -834,7 +805,6 @@ CppSQLite3Table::fieldIsNull(const char* szField) } - const char* CppSQLite3Table::fieldName(int nCol) { @@ -849,7 +819,6 @@ CppSQLite3Table::fieldName(int nCol) } - void CppSQLite3Table::setRow(int nRow) { @@ -863,7 +832,6 @@ CppSQLite3Table::setRow(int nRow) } - void CppSQLite3Table::checkResults() { @@ -903,7 +871,6 @@ CppSQLite3Statement::~CppSQLite3Statement() } - CppSQLite3Statement& CppSQLite3Statement::operator=(const CppSQLite3Statement& rStatement) { @@ -915,7 +882,6 @@ CppSQLite3Statement::operator=(const CppSQLite3Statement& rStatement) } - int CppSQLite3Statement::execDML() { @@ -945,7 +911,6 @@ CppSQLite3Statement::execDML() } - CppSQLite3Query CppSQLite3Statement::execQuery() { @@ -968,7 +933,6 @@ CppSQLite3Statement::execQuery() } - void CppSQLite3Statement::bind(int nParam, const char* szValue) { @@ -981,7 +945,6 @@ CppSQLite3Statement::bind(int nParam, const char* szValue) } - void CppSQLite3Statement::bind(int nParam, const int nValue) { @@ -994,7 +957,6 @@ CppSQLite3Statement::bind(int nParam, const int nValue) } - void CppSQLite3Statement::bind(int nParam, const double dValue) { @@ -1007,7 +969,6 @@ CppSQLite3Statement::bind(int nParam, const double dValue) } - void CppSQLite3Statement::bind(int nParam, const unsigned char* blobValue, int nLen) { @@ -1020,7 +981,6 @@ CppSQLite3Statement::bind(int nParam, const unsigned char* blobValue, int nLen) } - void CppSQLite3Statement::bindNull(int nParam) { @@ -1033,7 +993,6 @@ CppSQLite3Statement::bindNull(int nParam) } - int CppSQLite3Statement::bindParameterIndex(const char* szParam) { @@ -1055,7 +1014,6 @@ CppSQLite3Statement::bindParameterIndex(const char* szParam) } - void CppSQLite3Statement::bind(const char* szParam, const char* szValue) { @@ -1064,7 +1022,6 @@ CppSQLite3Statement::bind(const char* szParam, const char* szValue) } - void CppSQLite3Statement::bind(const char* szParam, const int nValue) { @@ -1087,7 +1044,6 @@ CppSQLite3Statement::bind(const char* szParam, const unsigned char* blobValue, i } - void CppSQLite3Statement::bindNull(const char* szParam) { @@ -1096,7 +1052,6 @@ CppSQLite3Statement::bindNull(const char* szParam) } - void CppSQLite3Statement::reset() { @@ -1111,7 +1066,6 @@ CppSQLite3Statement::reset() } - void CppSQLite3Statement::finalize() { @@ -1127,7 +1081,6 @@ CppSQLite3Statement::finalize() } - void CppSQLite3Statement::checkDB() { @@ -1137,7 +1090,6 @@ CppSQLite3Statement::checkDB() } - void CppSQLite3Statement::checkVM() { @@ -1169,7 +1121,6 @@ CppSQLite3DB::~CppSQLite3DB() } - CppSQLite3DB& CppSQLite3DB::operator=(const CppSQLite3DB& db) { @@ -1179,7 +1130,6 @@ CppSQLite3DB::operator=(const CppSQLite3DB& db) } - void CppSQLite3DB::open(const char* szFile) { @@ -1194,7 +1144,6 @@ CppSQLite3DB::open(const char* szFile) } - void CppSQLite3DB::close() { @@ -1208,7 +1157,6 @@ CppSQLite3DB::close() } - CppSQLite3Statement CppSQLite3DB::compileStatement(const char* szSQL) { @@ -1219,7 +1167,6 @@ CppSQLite3DB::compileStatement(const char* szSQL) } - bool CppSQLite3DB::tableExists(const char* szTable) { @@ -1230,7 +1177,6 @@ CppSQLite3DB::tableExists(const char* szTable) } - int CppSQLite3DB::execDML(const char* szSQL) { @@ -1248,7 +1194,6 @@ CppSQLite3DB::execDML(const char* szSQL) } - CppSQLite3Query CppSQLite3DB::execQuery(const char* szSQL) { @@ -1272,7 +1217,6 @@ CppSQLite3DB::execQuery(const char* szSQL) } - int CppSQLite3DB::execScalar(const char* szSQL, int nNullValue /*=0*/) { @@ -1286,7 +1230,6 @@ CppSQLite3DB::execScalar(const char* szSQL, int nNullValue /*=0*/) } - CppSQLite3Table CppSQLite3DB::getTable(const char* szSQL) { @@ -1308,7 +1251,6 @@ CppSQLite3DB::getTable(const char* szSQL) } - sqlite_int64 CppSQLite3DB::lastRowId() { @@ -1316,7 +1258,6 @@ CppSQLite3DB::lastRowId() } - void CppSQLite3DB::setBusyTimeout(int nMillisecs) { @@ -1325,7 +1266,6 @@ CppSQLite3DB::setBusyTimeout(int nMillisecs) } - void CppSQLite3DB::checkDB() { @@ -1335,7 +1275,6 @@ CppSQLite3DB::checkDB() } - sqlite3_stmt* CppSQLite3DB::compile(const char* szSQL) { diff --git a/src/CurrencyBox.cpp b/src/CurrencyBox.cpp index bfd1ed0..3f02a30 100644 --- a/src/CurrencyBox.cpp +++ b/src/CurrencyBox.cpp @@ -56,7 +56,6 @@ CurrencyBox::CurrencyBox( } - bool CurrencyBox::Validate(bool alert) { diff --git a/src/DAlert.cpp b/src/DAlert.cpp index 06f6ae6..6378224 100644 --- a/src/DAlert.cpp +++ b/src/DAlert.cpp @@ -145,7 +145,6 @@ DAlert::DAlert(const char* title, const char* text, const char* button1, const c } - DAlert::DAlert(const char* title, const char* text, const char* button1, const char* button2, const char* button3, button_width width, button_spacing spacing, alert_type type) : BWindow(DEFAULT_RECT, title, B_MODAL_WINDOW, @@ -162,7 +161,6 @@ DAlert::~DAlert() } - DAlert::DAlert(BMessage* data) : BWindow(data) { fInvoker = NULL; diff --git a/src/DateBox.cpp b/src/DateBox.cpp index 389228c..aa8bc1b 100644 --- a/src/DateBox.cpp +++ b/src/DateBox.cpp @@ -117,7 +117,6 @@ DateBox::DateBox(const char* name, const char* label, const char* text, BMessage } - bool DateBox::Validate(const bool& alert) { diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d7f1037..92cc5b6 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -34,7 +34,6 @@ #include "TransferWindow.h" - #undef B_TRANSLATION_CONTEXT #define B_TRANSLATION_CONTEXT "MainWindow" @@ -303,7 +302,7 @@ MainWindow::MessageReceived(BMessage* msg) } case M_REPORT_BUG: { - char *argv[2] = {(char*)"https://github.com/HaikuArchives/CapitalBe", NULL}; + char* argv[2] = {(char*)"https://github.com/HaikuArchives/CapitalBe", NULL}; be_roster->Launch("text/html", 1, argv); break; } diff --git a/src/PrefWindow.cpp b/src/PrefWindow.cpp index a6c6e44..1ca64bf 100644 --- a/src/PrefWindow.cpp +++ b/src/PrefWindow.cpp @@ -131,7 +131,7 @@ DatePrefView::DatePrefView(const char* name, Locale* locale, const int32& flags) temp = B_TRANSLATE("Separator:"); fDateSeparatorBox = new AutoTextControl( - "datesep", temp.String(), fLocale.DateSeparator(), new BMessage(M_NEW_DATE_SEPARATOR)); + "datesep", temp.String(), fLocale.DateSeparator(), new BMessage(M_NEW_DATE_SEPARATOR)); fDateSeparatorBox->SetDivider(StringWidth(temp.String()) + 5); fDateSeparatorBox->SetCharacterLimit(2);