diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-03-20 06:33:01 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-03-20 06:33:01 +0000 |
commit | 54975cd08c68b62b6b079b6c30c7868ffd7db5a8 (patch) | |
tree | 26ee11762268f4c16b74fc0b9210b6c16cbc941b /graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp | |
parent | Fix build with clang 6 (diff) |
graphics/pfstools: Update to 2.1.0
Port changes:
* Change to DISTVERSION
* Add LICENSE_FILE
* Change to cmake (from gmake)
* Update of all options accordingly
PR: 225537
Submitted by: Iouri V. Ivliev <fbsd@any.com.ru> (maintainer)
Diffstat (limited to 'graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp')
-rw-r--r-- | graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp b/graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp new file mode 100644 index 000000000000..43ddf1c6cf70 --- /dev/null +++ b/graphics/pfstools/files/patch-src_fileformat_pfsoutpfm.cpp @@ -0,0 +1,20 @@ +--- src/fileformat/pfsoutpfm.cpp.orig 2018-01-19 06:59:44 UTC ++++ src/fileformat/pfsoutpfm.cpp +@@ -85,7 +85,7 @@ void writePFMFileColor( FILE *fh, int wi + } + int written = fwrite( line, sizeof( float ), lineSize, fh ); + if( written != lineSize ) +- throw new pfs::Exception( "Unable to write data" ); ++ throw pfs::Exception( "Unable to write data" ); + } + delete[] line; + } +@@ -109,7 +109,7 @@ void writePFMFileGrayscale( FILE *fh, in + } + int written = fwrite( line, sizeof( float ), lineSize, fh ); + if( written != lineSize ) +- throw new pfs::Exception( "Unable to write data" ); ++ throw pfs::Exception( "Unable to write data" ); + } + delete[] line; + } |