From 2aa9cb3c87dbf4a0c3338e650093195d75b3a0b0 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 19 Jul 2019 09:51:45 +0200 Subject: [PATCH] Cleanup. No functional changes intended. --- gnuplot_i.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gnuplot_i.hpp b/gnuplot_i.hpp index 2342f59..94b8c8f 100644 --- a/gnuplot_i.hpp +++ b/gnuplot_i.hpp @@ -924,7 +924,7 @@ Gnuplot::~Gnuplot(void) #elif defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__) if (pclose(gnucmd) == -1) #endif - std::cerr << "Gnuplot::~Gnuplot: Problem closing communication to gnuplot" << std::endl; + { std::cerr << "Gnuplot::~Gnuplot: Problem closing communication to gnuplot" << std::endl; } } @@ -1660,7 +1660,7 @@ Gnuplot& Gnuplot::cmd(const std::string &cmdstr) if( cmdstr.find("replot") != std::string::npos ) { return *this; - } + } else if( cmdstr.find("splot") != std::string::npos ) { two_dim = false; @@ -1671,6 +1671,10 @@ Gnuplot& Gnuplot::cmd(const std::string &cmdstr) two_dim = true; nplots++; } + else + { + // Nothing to do + } return *this; }