You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ts...@apache.org on 2016/03/17 16:03:54 UTC

svn commit: r1735442 - /incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp

Author: tschoening
Date: Thu Mar 17 15:03:54 2016
New Revision: 1735442

URL: http://svn.apache.org/viewvc?rev=1735442&view=rev
Log:
LOGCXX-400: Tried to make the code more readable by seperating blocks of texts using the already inlined 0 bytes.

Modified:
    incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp

Modified: incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp
URL: http://svn.apache.org/viewvc/incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp?rev=1735442&r1=1735441&r2=1735442&view=diff
==============================================================================
--- incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp (original)
+++ incubator/log4cxx/trunk/src/main/cpp/locationinfo.cpp Thu Mar 17 15:03:54 2016
@@ -153,18 +153,21 @@ void LocationInfo::write(ObjectOutputStr
          os.writeNull(p);
     } else {
         char prolog[] = {
-         0x72, 0x00, 0x21, 0x6F, 0x72, 0x67, 0x2E, 
-         0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2E, 0x6C, 
-         0x6F, 0x67, 0x34, 0x6A, 0x2E, 0x73, 0x70, 0x69, 
-         0x2E, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x69, 0x6F, 
-         0x6E, 0x49, 0x6E, 0x66, 0x6F, static_cast<char>(0xED), static_cast<char>(0x99), static_cast<char>(0xBB), 
-         static_cast<char>(0xE1), 0x4A, static_cast<char>(0x91), static_cast<char>(0xA5), 0x7C, 0x02, 0x00, 0x01, 
-         0x4C, 0x00, 0x08, 0x66, 0x75, 0x6C, 0x6C, 0x49, 
-         0x6E, 0x66, 0x6F, 
-            0x74, 0x00, 0x12, 0x4C, 0x6A, 
-                0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 
-                0x2F, 0x53, 0x74, 0x72, 0x69, 0x6E, 0x67, 0x3B,
-         0x78, 0x70 };
+         0x72,
+         0x00,
+         0x21, 0x6F, 0x72, 0x67, 0x2E, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2E,
+         0x6C, 0x6F, 0x67, 0x34, 0x6A, 0x2E, 0x73, 0x70, 0x69, 0x2E, 0x4C, 0x6F,
+         0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x49, 0x6E, 0x66, 0x6F, static_cast<char>(0xED),
+         static_cast<char>(0x99), static_cast<char>(0xBB), static_cast<char>(0xE1),
+         0x4A, static_cast<char>(0x91), static_cast<char>(0xA5), 0x7C, 0x02,
+         0x00,
+         0x01, 0x4C,
+         0x00,
+         0x08, 0x66, 0x75, 0x6C, 0x6C, 0x49, 0x6E, 0x66, 0x6F, 0x74,
+         0x00,
+         0x12, 0x4C, 0x6A, 0x61, 0x76, 0x61, 0x2F, 0x6C, 0x61, 0x6E, 0x67, 0x2F,
+         0x53, 0x74, 0x72, 0x69, 0x6E, 0x67, 0x3B, 0x78, 0x70
+        };
       os.writeProlog("org.apache.log4j.spi.LocationInfo", 2, prolog, sizeof(prolog), p);
         char* line = p.itoa(lineNumber);
         //