From 2d802411e99ee55b1a392bf52e2a43a35e0cc916 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 4 Sep 2020 08:03:53 -0400 Subject: [PATCH] remove pointless stringstream abuse --- src/USER-PHONON/third_order.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/USER-PHONON/third_order.cpp b/src/USER-PHONON/third_order.cpp index e15b82fbab..e7997d6397 100644 --- a/src/USER-PHONON/third_order.cpp +++ b/src/USER-PHONON/third_order.cpp @@ -169,13 +169,11 @@ void ThirdOrder::options(int narg, char **arg) if (narg < 0) error->all(FLERR,"Illegal third_order command"); int iarg = 0; const char *filename = "third_order.dat"; - std::stringstream fss; while (iarg < narg) { if (strcmp(arg[iarg],"file") == 0) { if (iarg+2 > narg) error->all(FLERR, "Illegal third_order command"); - fss << arg[iarg + 1]; - filename = fss.str().c_str(); + filename = arg[iarg + 1]; file_flag = 1; iarg += 2; } else if (strcmp(arg[iarg],"binary") == 0) {