[Liblas-commits] hg: not all platforms have .open that take in strings

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 5 11:47:17 EST 2011


details:   http://hg.liblas.orghg/rev/08b635c9ab58
changeset: 2691:08b635c9ab58
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Jan 05 10:47:10 2011 -0600
description:
not all platforms have .open that take in strings

diffstat:

 test/unit/zipwriter_test.cpp |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r 439c024e009f -r 08b635c9ab58 test/unit/zipwriter_test.cpp
--- a/test/unit/zipwriter_test.cpp	Wed Jan 05 08:23:09 2011 -0800
+++ b/test/unit/zipwriter_test.cpp	Wed Jan 05 10:47:10 2011 -0600
@@ -50,7 +50,7 @@
         // Create new LAS file using default header block
         {
             std::ofstream ofs;
-            ofs.open(file_laz, std::ios::out | std::ios::binary);
+            ofs.open(file_laz.c_str(), std::ios::out | std::ios::binary);
 
             // LAS 1.2, Point Format 0
             liblas::Header header;
@@ -64,7 +64,7 @@
         // Read previously created LAS file and check its header block, laszip VLR
         {
             std::ifstream ifs;
-            ifs.open(file_laz, std::ios::in | std::ios::binary);
+            ifs.open(file_laz.c_str(), std::ios::in | std::ios::binary);
             ensure(ifs.is_open());
 
             liblas::ReaderFactory factory;
@@ -85,7 +85,7 @@
     {
         {
             std::ofstream ofs;
-            ofs.open(file_laz, std::ios::out | std::ios::binary);
+            ofs.open(file_laz.c_str(), std::ios::out | std::ios::binary);
 
             // LAS 1.1, Point Format 0
             liblas::Header header;
@@ -123,7 +123,7 @@
         // Read previously create LAS file with 3 point records
         {
             std::ifstream ifs;
-            ifs.open(file_laz, std::ios::in | std::ios::binary);
+            ifs.open(file_laz.c_str(), std::ios::in | std::ios::binary);
             ensure(ifs.is_open());
 
             liblas::ReaderFactory factory;


More information about the Liblas-commits mailing list