use a reference instead of a local copy
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 27 Aug 2008 09:40:49 +0000 (09:40 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 27 Aug 2008 09:40:49 +0000 (09:40 +0000)
lib/base/console.cpp

index 0a01094..4c3be72 100644 (file)
@@ -370,7 +370,7 @@ void eConsoleAppContainer::readyWrite(int what)
 {
        if (what&eSocketNotifier::Write && outbuf.size() )
        {
-               queue_data d = outbuf.front();
+               queue_data &d = outbuf.front();
                int wr = ::write( fd[1], d.data+d.dataSent, d.len-d.dataSent );
                if (wr < 0)
                        eDebug("eConsoleAppContainer write failed (%m)");