diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-09-10 16:21:55 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-09-10 16:21:55 +0000 |
commit | 080d202c75f0c0887d11daf5186ee51c1e82b6c3 (patch) | |
tree | 73df35153e5abc7776657d2681e2a010f03b7c5f /libdimensionxx/png.cpp | |
parent | c6664a06093a9da96028d4f5488dbcab6ecab5b4 (diff) | |
download | dimension-080d202c75f0c0887d11daf5186ee51c1e82b6c3.tar.xz |
New iostream-style diamond inheritance pattern for FILE_Cookie:
iFILE_Cookie, oFILE_Cookie, ioFILE_Cookie.
Diffstat (limited to 'libdimensionxx/png.cpp')
-rw-r--r-- | libdimensionxx/png.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimensionxx/png.cpp b/libdimensionxx/png.cpp index 8853c5b..92bfc15 100644 --- a/libdimensionxx/png.cpp +++ b/libdimensionxx/png.cpp @@ -55,7 +55,7 @@ namespace Dimension } // Make the C++/C I/O interface - FILE_Cookie cookie(*m_ostr); + oFILE_Cookie cookie(*m_ostr); // Write the PNG file if (dmnsn_png_write_canvas(m_canvas->dmnsn(), cookie.file()) != 0) { @@ -81,7 +81,7 @@ namespace Dimension Persister persister; // Make the C++/C I/O interface - FILE_Cookie* cookie = new FILE_Cookie(*m_ostr); + FILE_Cookie* cookie = new oFILE_Cookie(*m_ostr); persister.persist(cookie); // Start the asynchronous task @@ -110,7 +110,7 @@ namespace Dimension } // Make the C++/C I/O interface - FILE_Cookie cookie(*m_istr); + iFILE_Cookie cookie(*m_istr); // Read the canvas from a PNG file dmnsn_canvas* canvas = dmnsn_png_read_canvas(cookie.file()); @@ -146,7 +146,7 @@ namespace Dimension persister.persist(canvas); // Make the C++/C I/O interface - FILE_Cookie* cookie = new FILE_Cookie(*m_istr); + iFILE_Cookie* cookie = new iFILE_Cookie(*m_istr); persister.persist(cookie); // Start the asynchronous task |