diff liboctave/system/oct-env.cc @ 23804:8057d3f0673d

Use C++11 raw string literals to avoid escaping backslashes in strings. * file-editor-tab.cc, octave-qscintilla.cc, graphics.cc, help.cc, input.cc, oct-stream.cc, regexp.cc, sparse-xdiv.cc, sysdep.cc, utils.cc, xdiv.cc, ov-java.cc, ov.cc, file-ops.cc, lo-sysdep.cc, oct-env.cc, mkoctfile.in.cc, shared-fcns.h: Replace regular strings containing "\\" patterns with R"(...\...)".
author Rik <rik@octave.org>
date Fri, 28 Jul 2017 11:19:36 -0700
parents 08036a7f3660
children e56d84a16a2e
line wrap: on
line diff
--- a/liboctave/system/oct-env.cc	Fri Jul 28 10:34:33 2017 -0700
+++ b/liboctave/system/oct-env.cc	Fri Jul 28 11:19:36 2017 -0700
@@ -207,8 +207,8 @@
 
       // Some versions of MinGW and MSVC either don't define P_tmpdir, or
       // define it to a single backslash.  In such cases just use C:\temp.
-      if (tempd.empty () || tempd == "\\")
-        tempd = "c:\\temp";
+      if (tempd.empty () || tempd == '\\')
+        tempd = R"(c:\temp)";
 
 #else