[Libreoffice-commits] core.git: include/comphelper

Tor Lillqvist tml at collabora.com
Tue Aug 29 10:52:07 UTC 2017


 include/comphelper/profilezone.hxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit e6abf10fa2cb30db5fa5131253b4f5ef80c84774
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Aug 29 13:43:58 2017 +0300

    Add cautionary comment
    
    Change-Id: I6003e8193bf58ba21cd8d5abe42959b489b2f39d

diff --git a/include/comphelper/profilezone.hxx b/include/comphelper/profilezone.hxx
index 6702619b6008..7c278294cb38 100644
--- a/include/comphelper/profilezone.hxx
+++ b/include/comphelper/profilezone.hxx
@@ -38,6 +38,10 @@ private:
     const char * m_sProfileId;
     long long m_aCreateTime;
 public:
+
+    // Note that the char pointer is stored as such in the ProfileZone object and used in the
+    // destructor, so be sure to pass a pointer that stays valid for the duration of the object's
+    // lifetime.
     ProfileZone(const char * sProfileId);
     ~ProfileZone();
 };


More information about the Libreoffice-commits mailing list