From 514b591061df787a840a560b2e99285eca527f2f Mon Sep 17 00:00:00 2001 From: Huynh Tran Date: Sun, 19 Jun 2005 06:57:19 +0000 Subject: Fixed compilation warnings. --- src/dalstorage.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dalstorage.cpp b/src/dalstorage.cpp index b41975be..73e4f101 100644 --- a/src/dalstorage.cpp +++ b/src/dalstorage.cpp @@ -130,6 +130,8 @@ DALStorage::getAccountCount(void) using namespace dal; + unsigned int value = 0; + try { // query the database. std::string sql("select count(*) from "); @@ -141,10 +143,12 @@ DALStorage::getAccountCount(void) // a string to an unsigned int. string_to toUint; - return toUint(rs(0, 0)); + value = toUint(rs(0, 0)); } catch (const DbSqlQueryExecFailure& f) { std::cout << "Get accounts count failed :'(" << std::endl; } + + return value; } -- cgit v1.2.3-70-g09d2