diff options
Diffstat (limited to 'gentoobrowse-api/service/utils/splitEbuildProps.cpp')
-rw-r--r-- | gentoobrowse-api/service/utils/splitEbuildProps.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/gentoobrowse-api/service/utils/splitEbuildProps.cpp b/gentoobrowse-api/service/utils/splitEbuildProps.cpp index ce052ab..3d6b6e8 100644 --- a/gentoobrowse-api/service/utils/splitEbuildProps.cpp +++ b/gentoobrowse-api/service/utils/splitEbuildProps.cpp @@ -1,21 +1,21 @@ #include "splitEbuildProps.h" -#include <command.h> #include "dbUtils.h" +#include <command.h> namespace Gentoo { namespace Utils { - SplitEbuildProps::SplitEbuildProps(const std::string & ce, int e, const std::string & cp, const std::optional<Glib::ustring> & p) : + SplitEbuildProps::SplitEbuildProps( + const std::string & ce, int e, const std::string & cp, const std::optional<Glib::ustring> & p) : entityId(e), - colEntityName(ce), - colPropName(cp), - props(p) + colEntityName(ce), colPropName(cp), props(p) { } void SplitEbuildProps::writeSql(AdHoc::Buffer & sql) { - sql.appendbf("(SELECT DISTINCT ?::int %s, trim(regexp_split_to_table(?, '\\s+'), '+') %s)", colEntityName, colPropName); + sql.appendbf("(SELECT DISTINCT ?::int %s, trim(regexp_split_to_table(?, '\\s+'), '+') %s)", colEntityName, + colPropName); } void @@ -26,4 +26,3 @@ namespace Gentoo { } } } - |