Mercurial > octave
diff liboctave/system/lo-sysdep.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 | 980f39c3ab90 |
children | 194eb4bd202b |
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc Fri Jul 28 10:34:33 2017 -0700 +++ b/liboctave/system/lo-sysdep.cc Fri Jul 28 11:19:36 2017 -0700 @@ -62,7 +62,7 @@ #if defined (OCTAVE_USE_WINDOWS_API) if (path.length () == 2 && path[1] == ':') - path += "\\"; + path += '\\'; #endif return octave_chdir_wrapper (path.c_str ());