From 02db8d5f8ae22cbbd8b38e66d0a211a3d2c4ffc6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sat, 10 Feb 2018 21:20:33 +0100 Subject: [PATCH] setting_helpers: replace another ostringstream by simple string Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/0919ebe2df764cae8f41197ef3025ed3b4596604 Author: vanhofen Date: 2018-02-10 (Sat, 10 Feb 2018) Origin message was: ------------------ - setting_helpers: replace another ostringstream by simple string ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/system/setting_helpers.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/system/setting_helpers.cpp b/src/system/setting_helpers.cpp index 3c24d847b..b6d0a6f80 100644 --- a/src/system/setting_helpers.cpp +++ b/src/system/setting_helpers.cpp @@ -143,11 +143,9 @@ bool CTouchFileNotifier::changeNotify(const neutrino_locale_t, void * data) bool CFlagFileNotifier::changeNotify(const neutrino_locale_t, void * data) { - std::ostringstream buf; - buf.str(""); - buf << FLAGDIR << "/." << filename; - - std::string flagfile = buf.str(); + std::string flagfile = FLAGDIR; + flagfile += "/."; + flagfile += filename; if ((*(int *)data) != 0) {