From f98f7569dc2c425eb80883af0ea6e5c90366424b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 21 Nov 2020 23:21:02 +0100 Subject: [PATCH] Fix ifstream initialization. --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 02ef43e..c99e169 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -290,7 +290,7 @@ void Document::parse_watchwords() { Json::Value json; const auto filepath = _cfg.get_config_dir() /= "watchwords.json"; - ifstream file(filepath); + ifstream file(filepath.c_str()); if (file.good()) { stringstream rawjson;