[icinga-checkins] icinga.org: icinga2/fix/correct-opentsdbwriter-character-replacement: WIP: use static const

git at icinga.org git at icinga.org
Thu Oct 20 22:53:46 CEST 2016


Module: icinga2
Branch: fix/correct-opentsdbwriter-character-replacement
Commit: 3fb83315d30321784a19f8f258f510af5af33214
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=3fb83315d30321784a19f8f258f510af5af33214

Author: Tobias von der Krone <tobias.vonderkrone at profitbricks.com>
Date:   Thu Oct 20 22:53:31 2016 +0200

WIP: use static const

---

 lib/perfdata/opentsdbwriter.hpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/perfdata/opentsdbwriter.hpp b/lib/perfdata/opentsdbwriter.hpp
index 0cf7610..71c866e 100644
--- a/lib/perfdata/opentsdbwriter.hpp
+++ b/lib/perfdata/opentsdbwriter.hpp
@@ -62,7 +62,7 @@ private:
 	*   or Unicode letters (as per the specification)
 	* - Metric and tags are not limited in length, though you should try to keep the values fairly short.
 	*/
-	const boost::regex replaceMetricTagRe("[^a-zA-Z0-9_./-]");
+	static const boost::regex replaceMetricTagRe("[^a-zA-Z0-9_./-]");
 
 
 	void CheckResultHandler(const Checkable::Ptr& checkable, const CheckResult::Ptr& cr);



More information about the icinga-checkins mailing list