From 7faa941cf9ccec24e10619bf47afcd91c45c9473 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 18 Apr 2006 15:21:32 +0000 Subject: Fixed compile warnings --- cpp/src/slice2cpp/Gen.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 7810f96eb64..d5d3ac331a7 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -23,7 +23,7 @@ using namespace IceUtil; Slice::Gen::Gen(const string& name, const string& base, const string& headerExtension, const string& sourceExtension, const vector& extraHeaders, const string& include, const vector& includePaths, const string& dllExport, const string& dir, - bool imp, bool checksum, bool stream) : + bool imp, bool checksum, bool stream, bool ice) : _base(base), _headerExtension(headerExtension), _sourceExtension(sourceExtension), @@ -33,7 +33,8 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte _dllExport(dllExport), _impl(imp), _checksum(checksum), - _stream(stream) + _stream(stream), + _ice(ice) { for(vector::iterator p = _includePaths.begin(); p != _includePaths.end(); ++p) { @@ -250,6 +251,11 @@ Slice::Gen::generate(const UnitPtr& p) H << "\n#include "; + if(_ice) + { + C << "\n#include "; + } + GlobalIncludeVisitor globalIncludeVisitor(H); p->visit(&globalIncludeVisitor, false); -- cgit v1.2.3