summaryrefslogtreecommitdiff
path: root/cpp/src/slice2freeze/Main.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-06 10:24:57 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-06 10:24:57 +0200
commite6f5dc2c89eda44fb0a3d444223131a31867a1b2 (patch)
treeb6bddfe0a0cccef45484314f47967d95a01472bb /cpp/src/slice2freeze/Main.cpp
parentmore Java changes & tests (diff)
parentICE-4804 - Properties and case-mismatch (diff)
downloadice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.tar.bz2
ice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.tar.xz
ice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.zip
Merge remote-tracking branch 'origin/master' into encoding11
Conflicts: cpp/include/Ice/Stream.h cpp/include/Slice/Preprocessor.h rb/ruby/Makefile.mak
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r--cpp/src/slice2freeze/Main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/src/slice2freeze/Main.cpp b/cpp/src/slice2freeze/Main.cpp
index 04026196d4f..9cf0e4477e3 100644
--- a/cpp/src/slice2freeze/Main.cpp
+++ b/cpp/src/slice2freeze/Main.cpp
@@ -1454,11 +1454,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co
}
}
- string s = fileH;
- transform(s.begin(), s.end(), s.begin(), ToIfdef());
- H << "\n#ifndef __" << s << "__";
- H << "\n#define __" << s << "__";
- H << '\n';
+ H << "#pragma once\n";
if(dicts.size() > 0)
{
@@ -1507,7 +1503,7 @@ gen(const string& name, const UnitPtr& u, const vector<string>& includePaths, co
}
}
- H << "\n\n#endif\n";
+ H << "\n\n";
CPP << '\n';
H.close();