diff --git a/libgnucash/engine/CMakeLists.txt b/libgnucash/engine/CMakeLists.txt index 202d910254..599fcc0077 100644 --- a/libgnucash/engine/CMakeLists.txt +++ b/libgnucash/engine/CMakeLists.txt @@ -6,7 +6,7 @@ add_subdirectory(mocks) set(engine_noinst_HEADERS AccountP.hpp - SplitP.h + SplitP.hpp SX-book.h SX-ttinfo.h TransactionP.hpp diff --git a/libgnucash/engine/SplitP.h b/libgnucash/engine/SplitP.hpp similarity index 98% rename from libgnucash/engine/SplitP.h rename to libgnucash/engine/SplitP.hpp index 93cfe8312c..d13c2ffa1b 100644 --- a/libgnucash/engine/SplitP.h +++ b/libgnucash/engine/SplitP.hpp @@ -1,5 +1,5 @@ /********************************************************************\ - * SplitP.h -- private header for splits * + * SplitP.hpp -- private header for splits * * Copyright (C) 1997 Robin D. Clark * * Copyright (C) 1997-2000 Linas Vepstas * * Copyright (C) 2000 Bill Gribble * @@ -25,7 +25,7 @@ /* * FILE: - * SplitP.h + * SplitP.hpp * * FUNCTION: * The is the *private* split header file. Code outside of @@ -52,10 +52,6 @@ #include "qof.h" -#ifdef __cplusplus -extern "C" { -#endif - /** STRUCTS *********************************************************/ /* A "split" is more commonly referred to as an "entry" in a "transaction". */ @@ -236,10 +232,6 @@ typedef struct SplitTestFunctions* _utest_split_fill_functions (void); -#ifdef __cplusplus -} -#endif - /*@}*/ diff --git a/libgnucash/engine/Transaction.cpp b/libgnucash/engine/Transaction.cpp index 0cc0fcf4aa..dc6d5186bd 100644 --- a/libgnucash/engine/Transaction.cpp +++ b/libgnucash/engine/Transaction.cpp @@ -46,7 +46,7 @@ #include "Scrub.h" #include "Scrub3.h" #include "TransactionP.hpp" -#include "SplitP.h" +#include "SplitP.hpp" #include "TransLog.h" #include "cap-gains.h" #include "gnc-commodity.h" diff --git a/libgnucash/engine/TransactionP.hpp b/libgnucash/engine/TransactionP.hpp index 50a2d80a87..512e5dde01 100644 --- a/libgnucash/engine/TransactionP.hpp +++ b/libgnucash/engine/TransactionP.hpp @@ -49,7 +49,7 @@ #include #include "gnc-engine.h" /* for typedefs */ -#include "SplitP.h" +#include "SplitP.hpp" #include "qof.h" diff --git a/libgnucash/engine/mocks/gmock-Split.h b/libgnucash/engine/mocks/gmock-Split.h index ce022fb2d0..0fe7eb24e4 100644 --- a/libgnucash/engine/mocks/gmock-Split.h +++ b/libgnucash/engine/mocks/gmock-Split.h @@ -4,7 +4,7 @@ #include #include -#include +#include #include "gmock-qofbook.h" #include "gmock-gobject.h" diff --git a/libgnucash/engine/test/utest-Split.cpp b/libgnucash/engine/test/utest-Split.cpp index 23d163ee59..8ec6d59399 100644 --- a/libgnucash/engine/test/utest-Split.cpp +++ b/libgnucash/engine/test/utest-Split.cpp @@ -28,7 +28,7 @@ #include /* Add specific headers for this class */ #include -#include +#include #include #include #include