From c3afe7c8ea7ccb147e30ccbafbfcdad279d479aa Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 19 Nov 2009 13:26:08 +0100 Subject: make BZ insert small text attachments inline; move text file detection code Run-tested Signed-off-by: Denys Vlasenko --- src/Daemon/PluginManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Daemon/PluginManager.cpp') diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp index 3867ec9..f8e8fed 100644 --- a/src/Daemon/PluginManager.cpp +++ b/src/Daemon/PluginManager.cpp @@ -58,9 +58,9 @@ bool LoadPluginSettings(const char *pPath, map_plugin_settings_t& pSettings) std::string value; for (ii = 0; ii < line.length(); ii++) { - if (line[ii] == '\"') + if (line[ii] == '"') { - in_quote = in_quote == true ? false : true; + in_quote = !in_quote; } if (isspace(line[ii]) && !in_quote) { -- cgit