From 7de18ffaa7545543eec5db3c557e1a7fdb9115f2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 27 Mar 2018 23:17:14 -0400 Subject: Added default value to database query bindings --- hkutil/database.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hkutil/database.h b/hkutil/database.h index 67dd9c5..0914047 100644 --- a/hkutil/database.h +++ b/hkutil/database.h @@ -187,7 +187,7 @@ namespace hatkirby { std::vector queryAll( std::string queryString, - std::list bindings) + std::list bindings = {}) { sqlite3_stmt* tempStmt; @@ -287,7 +287,7 @@ namespace hatkirby { row queryFirst( std::string queryString, - std::list bindings) + std::list bindings = {}) { std::vector dataset = queryAll( std::move(queryString), -- cgit 1.4.1