mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18482 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
72586d2c03
commit
c9da76f1f5
@ -103,16 +103,15 @@ void copy_file(path const & source, path const & target, bool noclobber)
|
||||
fs::lookup_errno(errno)));
|
||||
}
|
||||
|
||||
struct stat source_stat;
|
||||
int const ret = ::fstat(infile, &source_stat);
|
||||
if (ret == -1) {
|
||||
struct stat source_stat;
|
||||
int const ret = ::fstat(infile, &source_stat);
|
||||
if (ret == -1) {
|
||||
int err = errno;
|
||||
::close(infile);
|
||||
boost::throw_exception(
|
||||
filesystem_path_error(
|
||||
"boost::filesystem::copy_file",
|
||||
source, target,
|
||||
fs::lookup_errno(err)));
|
||||
::close(infile);
|
||||
boost::throw_exception(filesystem_path_error(
|
||||
"boost::filesystem::copy_file",
|
||||
source, target,
|
||||
fs::lookup_errno(err)));
|
||||
}
|
||||
|
||||
int const flags = O_WRONLY | O_CREAT | (noclobber ? O_EXCL : O_TRUNC);
|
||||
|
Loading…
Reference in New Issue
Block a user