Bug 795655: Mark "StringFromPtr()" in RecordedEvent.h as inline, not static, so that it doesn't trigger build warnings in cpp files that don't use it. r=bas
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 29 Oct 2012 16:15:31 -0700
changeset 111845 4051d30c8f35ee5aa5579531d8f243e1586d9201
parent 111844 9e99e11d6ef6b38b9decf26d4da992a290ecd278
child 111846 f7e3e8c6e632ff175a17689ddaf8a3a0bd028954
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersbas
bugs795655
milestone19.0a1
Bug 795655: Mark "StringFromPtr()" in RecordedEvent.h as inline, not static, so that it doesn't trigger build warnings in cpp files that don't use it. r=bas
gfx/2d/RecordedEvent.h
--- a/gfx/2d/RecordedEvent.h
+++ b/gfx/2d/RecordedEvent.h
@@ -53,17 +53,18 @@ struct ReferencePtr
 
   operator void*() const {
     return (void*)mLongPtr;
   }
 
   uint64_t mLongPtr;
 };
 
-static std::string StringFromPtr(ReferencePtr aPtr)
+// Used by the Azure drawing debugger (player2d)
+inline std::string StringFromPtr(ReferencePtr aPtr)
 {
   std::stringstream stream;
   stream << aPtr;
   return stream.str();
 }
 
 class Translator
 {