summaryrefslogtreecommitdiffstats
path: root/FStream.hxx.in
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2013-12-21 23:58:02 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-23 15:51:34 (GMT)
commitd4efa5f81caf87a3ac170c5a4a1aa1fe78520f4d (patch)
treec52b9b9fbf9c9064cceb11e4221062fd6c2eef35 /FStream.hxx.in
parent7aa3c2015f773d9b9433ca72242d03470c461c27 (diff)
downloadCMake-d4efa5f81caf87a3ac170c5a4a1aa1fe78520f4d.zip
CMake-d4efa5f81caf87a3ac170c5a4a1aa1fe78520f4d.tar.gz
CMake-d4efa5f81caf87a3ac170c5a4a1aa1fe78520f4d.tar.bz2
KWSys 2013-12-21 (e81f2a9e)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ e81f2a9e | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 2426b57d..e81f2a9e Clinton Stimpson (1): e81f2a9e FStream: Fix opening non-existant file. Change-Id: I1f79e6671de7733d1b8e8a34ce627749c2f666b7
Diffstat (limited to 'FStream.hxx.in')
-rw-r--r--FStream.hxx.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/FStream.hxx.in b/FStream.hxx.in
index c340c55..916a93e 100644
--- a/FStream.hxx.in
+++ b/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)
+ );
}
};