From a15472ecfeb50c79e436d37404eeb93044599bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Wed, 7 Nov 2007 20:22:46 +0000 Subject: [PATCH] compile fix? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21494 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/FileName.cpp | 6 ++++-- src/support/strfwd.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index ba2a653ecd..a1ca026c63 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -89,7 +89,7 @@ static bool copy_file(std::string const & source, std::string const & target, bo int const outfile = ::open(target.c_str(), flags, source_stat.st_mode); if (outfile == -1) { - int err = errno; + //int err = errno; ::close(infile); return false; } @@ -113,7 +113,7 @@ static bool copy_file(std::string const & source, std::string const & target, bo } } - int err = errno; + //int err = errno; ::close(infile); ::close(outfile); @@ -129,8 +129,10 @@ static bool copy_file(std::string const & source, std::string const & target, bo return false; } #endif + return true; } + namespace lyx { namespace support { diff --git a/src/support/strfwd.h b/src/support/strfwd.h index ed22874c7d..324560952f 100644 --- a/src/support/strfwd.h +++ b/src/support/strfwd.h @@ -33,7 +33,7 @@ namespace std { template struct char_traits; template<> struct char_traits; -template<> struct char_traits; +template<> struct char_traits; template class allocator;