diff options
author | Brad King <brad.king@kitware.com> | 2013-12-23 15:51:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-12-23 15:51:38 (GMT) |
commit | 2f7c1691580a08b53eef63411c93f59121d95397 (patch) | |
tree | 46caf591f24f050fb4951b995176e5af12e6f566 /Source/kwsys/FStream.hxx.in | |
parent | e73d1ad003c50730a8141db757462574c0c2dddc (diff) | |
parent | d4efa5f81caf87a3ac170c5a4a1aa1fe78520f4d (diff) | |
download | CMake-2f7c1691580a08b53eef63411c93f59121d95397.zip CMake-2f7c1691580a08b53eef63411c93f59121d95397.tar.gz CMake-2f7c1691580a08b53eef63411c93f59121d95397.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/FStream.hxx.in')
-rw-r--r-- | Source/kwsys/FStream.hxx.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/kwsys/FStream.hxx.in b/Source/kwsys/FStream.hxx.in index c340c55..916a93e 100644 --- a/Source/kwsys/FStream.hxx.in +++ b/Source/kwsys/FStream.hxx.in @@ -25,8 +25,9 @@ namespace @KWSYS_NAMESPACE@ typedef std::basic_filebuf<CharType,Traits> my_base_type; basic_filebuf *open(char const *s,std::ios_base::openmode mode) { - my_base_type::open(Encoding::ToWide(s).c_str(), mode); - return this; + return static_cast<basic_filebuf*>( + my_base_type::open(Encoding::ToWide(s).c_str(), mode) + ); } }; |