activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1347128 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h
Date Wed, 06 Jun 2012 21:08:33 GMT
Author: tabish
Date: Wed Jun  6 21:08:33 2012
New Revision: 1347128

URL: http://svn.apache.org/viewvc?rev=1347128&view=rev
Log:
return the local value by reference

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h?rev=1347128&r1=1347127&r2=1347128&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/ThreadLocal.h Wed Jun  6
21:08:33 2012
@@ -61,7 +61,7 @@ namespace lang {
          *
          * @returns the current thread's value for this thread local.
          */
-        E get() {
+        E& get() {
             void* bytes = getRawValue();
             if (bytes == NULL) {
                 E* value = new E();



Mime
View raw message