diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-08-06 16:14:03 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-08-06 16:14:03 +0200 |
commit | 7047b953adab26c7098cbfaea2b69f9d36231cd3 (patch) | |
tree | 8668c830838184ebc465554b85c085da42fb6f6a /cpp/src/slice2freeze/Main.cpp | |
parent | Missing files (diff) | |
parent | Removed Stream::format method, replace with startWriteEncaps parameter (diff) | |
download | ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.bz2 ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.tar.xz ice-7047b953adab26c7098cbfaea2b69f9d36231cd3.zip |
Merge remote-tracking branch 'origin/encoding11' into mx
Conflicts:
cpp/src/Ice/.depend
cpp/src/Ice/.depend.mak
cpp/src/slice2cpp/Gen.cpp
Diffstat (limited to 'cpp/src/slice2freeze/Main.cpp')
-rw-r--r-- | cpp/src/slice2freeze/Main.cpp | 8 |
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(); |