diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-20 09:36:14 +0000 |
| commit | 694fb307aa7e582a55bce7e995bde3a4614b3b4f (patch) | |
| tree | 42bf3e703ebd706c9ebdd62bca59396f2d67a790 /src/Sqlite3CookieParser.cc | |
| parent | 580098eb4929a3bdbf424af18da361259ef2efe5 (diff) | |
2010-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Replaced StringFormat with fmt
Diffstat (limited to 'src/Sqlite3CookieParser.cc')
| -rw-r--r-- | src/Sqlite3CookieParser.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Sqlite3CookieParser.cc b/src/Sqlite3CookieParser.cc index 7183f57b..804e691d 100644 --- a/src/Sqlite3CookieParser.cc +++ b/src/Sqlite3CookieParser.cc @@ -39,7 +39,7 @@ #include "DlAbortEx.h" #include "util.h" -#include "StringFormat.h" +#include "fmt.h" #include "A2STR.h" #include "cookie_helper.h" #ifndef HAVE_SQLITE3_OPEN_V2 @@ -138,7 +138,7 @@ int cookieRowMapper(void* data, int columns, char** values, char** names) void Sqlite3CookieParser::parse(std::vector<Cookie>& cookies) { if(!db_) { - throw DL_ABORT_EX(StringFormat("SQLite3 database is not opened.").str()); + throw DL_ABORT_EX(fmt("SQLite3 database is not opened.")); } std::vector<Cookie> tcookies; char* sqlite3ErrMsg = 0; @@ -150,8 +150,9 @@ void Sqlite3CookieParser::parse(std::vector<Cookie>& cookies) sqlite3_free(sqlite3ErrMsg); } if(SQLITE_OK != ret) { - throw DL_ABORT_EX(StringFormat("Failed to read SQLite3 database: %s", - errMsg.c_str()).str()); + throw DL_ABORT_EX + (fmt("Failed to read SQLite3 database: %s", + errMsg.c_str())); } cookies.swap(tcookies); } |
