diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-19 11:38:41 -0600 |
commit | f0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (patch) | |
tree | 1fc538e179833e62caec21956bfe47a252be5a72 /filters/karbon/xcf | |
parent | 11191ef0b9908604d1d7aaca382b011ef22c454c (diff) | |
download | koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.tar.gz koffice-f0de9e167e289ab7dc33e57f077c1f04ec7c68c8.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'filters/karbon/xcf')
-rw-r--r-- | filters/karbon/xcf/xcfexport.cc | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/filters/karbon/xcf/xcfexport.cc b/filters/karbon/xcf/xcfexport.cc index 8de11197..215c4f01 100644 --- a/filters/karbon/xcf/xcfexport.cc +++ b/filters/karbon/xcf/xcfexport.cc @@ -128,10 +128,10 @@ XcfExport::visitVDocument( VDocument& document ) // Save current offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Leave space for layer and channel offsets. - m_stream->tqdevice()->at( + m_stream->device()->at( // current position + (number layers + number channels + 2) * 4. current + ( document.layers().count() + 3 + 2 ) * 4 ); @@ -142,7 +142,7 @@ XcfExport::visitVDocument( VDocument& document ) for( ; itr.current(); ++itr ) { // Save start offset. - start = m_stream->tqdevice()->at(); + start = m_stream->device()->at(); // Write layer. @@ -150,31 +150,31 @@ XcfExport::visitVDocument( VDocument& document ) // Save end offset. - end = m_stream->tqdevice()->at(); + end = m_stream->device()->at(); // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Save layer offset. *m_stream << start; // Increment offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Return to end offset. - m_stream->tqdevice()->at( end ); + m_stream->device()->at( end ); } // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Append a zero offset to indicate end of layer offsets. *m_stream << static_cast<TQ_UINT32>( 0 ); // Return to end offset. - m_stream->tqdevice()->at( end ); + m_stream->device()->at( end ); // Append a zero offset to indicate end of channel offsets. *m_stream << static_cast<TQ_UINT32>( 0 ); @@ -279,13 +279,13 @@ XcfExport::visitVLayer( VLayer& layer ) TQIODevice::Offset end = 0; // Save current offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Leave space for hierarchy offsets. - m_stream->tqdevice()->at( current + 8 ); + m_stream->device()->at( current + 8 ); // Save start offset. - start = m_stream->tqdevice()->at(); + start = m_stream->device()->at(); // Write hierarchy. @@ -293,10 +293,10 @@ XcfExport::visitVLayer( VLayer& layer ) // Save end offset. - end = m_stream->tqdevice()->at(); + end = m_stream->device()->at(); // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Save hierarchy offset. *m_stream << start; @@ -333,15 +333,15 @@ XcfExport::writeHierarchy() int height = m_height; // Save current offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Leave space for level offsets. - m_stream->tqdevice()->at( current + ( levels + 1 ) * 4 ); + m_stream->device()->at( current + ( levels + 1 ) * 4 ); for( int i = 0; i < levels; ++i ) { // Save start offset. - start = m_stream->tqdevice()->at(); + start = m_stream->device()->at(); if( i == 0 ) { @@ -360,23 +360,23 @@ XcfExport::writeHierarchy() } // Save end offset. - end = m_stream->tqdevice()->at(); + end = m_stream->device()->at(); // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Save level offset. *m_stream << start; // Increment offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Return to end offset. - m_stream->tqdevice()->at( end ); + m_stream->device()->at( end ); } // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Append a zero offset to indicate end of level offsets. *m_stream << static_cast<TQ_UINT32>( 0 ); @@ -398,15 +398,15 @@ XcfExport::writeLevel() int tiles = rows * cols; // Save current offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Leave space for tile offsets. - m_stream->tqdevice()->at( current + ( tiles + 1 ) * 4 ); + m_stream->device()->at( current + ( tiles + 1 ) * 4 ); for( int i = 0; i < tiles; ++i ) { // Save start offset. - start = m_stream->tqdevice()->at(); + start = m_stream->device()->at(); // TODO: Save tile. @@ -425,19 +425,19 @@ XcfExport::writeLevel() // Save end offset. - end = m_stream->tqdevice()->at(); + end = m_stream->device()->at(); // Return to current offset. - m_stream->tqdevice()->at( current ); + m_stream->device()->at( current ); // Save tile offset. *m_stream << start; // Increment offset. - current = m_stream->tqdevice()->at(); + current = m_stream->device()->at(); // Return to end offset. - m_stream->tqdevice()->at( end ); + m_stream->device()->at( end ); } } |