summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-10-09 21:58:46 +0200
committerJose <jose@zeroc.com>2017-10-09 21:58:46 +0200
commit5e445567683deebded1c12e78796e998cbf16ae8 (patch)
treeb854d4547e5b68225c1882290414a996c44002c8 /cpp
parentInternal code cleanup (diff)
downloadice-5e445567683deebded1c12e78796e998cbf16ae8.tar.bz2
ice-5e445567683deebded1c12e78796e998cbf16ae8.tar.xz
ice-5e445567683deebded1c12e78796e998cbf16ae8.zip
Update MATLAB build system
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Slice/Preprocessor.cpp13
-rw-r--r--cpp/src/Slice/StringLiteralUtil.cpp2
2 files changed, 2 insertions, 13 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp
index 89a9874aac2..4bee00f7257 100644
--- a/cpp/src/Slice/Preprocessor.cpp
+++ b/cpp/src/Slice/Preprocessor.cpp
@@ -602,6 +602,7 @@ Slice::Preprocessor::printMakefileDependencies(ostream& out, Language lang, cons
case SliceXML:
break;
case Java:
+ case MATLAB:
{
//
// We want to shift the files left one position, so that
@@ -724,18 +725,6 @@ Slice::Preprocessor::printMakefileDependencies(ostream& out, Language lang, cons
}
break;
}
- case MATLAB:
- {
- //
- // Change .o[bj] suffix to .m suffix.
- //
- string::size_type pos;
- if((pos = result.find(suffix)) != string::npos)
- {
- result.replace(pos, suffix.size() - 1, ".m");
- }
- break;
- }
default:
{
assert(false);
diff --git a/cpp/src/Slice/StringLiteralUtil.cpp b/cpp/src/Slice/StringLiteralUtil.cpp
index 80c322b4d7f..6eb0e4bf650 100644
--- a/cpp/src/Slice/StringLiteralUtil.cpp
+++ b/cpp/src/Slice/StringLiteralUtil.cpp
@@ -175,7 +175,7 @@ StringLiteralGenerator::escapeASCIIChar(char c)
// legal characters. If the trailing character after an escaped value could be consumed, we escape it
// as well to terminate the original escape.
//
- if((lastFormat == OctalFormat && _octalChars.find(c) != string::npos) ||
+ if((lastFormat == OctalFormat && _octalChars.find(c) != string::npos) ||
(lastFormat == HexFormat && _hexChars.find(c) != string::npos))
{
ostringstream os;