From 6fa2705799afc20447438646966cd064a124beb7 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 27 Aug 2008 09:40:49 +0000 Subject: [PATCH] use a reference instead of a local copy --- lib/base/console.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/console.cpp b/lib/base/console.cpp index 0a01094..4c3be72 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)"); -- 2.7.4