From: Andreas Monzner Date: Wed, 27 Aug 2008 09:40:49 +0000 (+0000) Subject: use a reference instead of a local copy X-Git-Tag: 2.6.0~923 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/6fa2705799afc20447438646966cd064a124beb7 use a reference instead of a local copy --- diff --git a/lib/base/console.cpp b/lib/base/console.cpp index 0a01094b..4c3be72c 100644 --- a/lib/base/console.cpp +++ b/lib/base/console.cpp @@ -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)");