[insight-vmi] r1987 committed - Static var moved inside the function body.

0 views
Skip to first unread message

insig...@googlecode.com

unread,
Jun 21, 2013, 9:36:04 AM6/21/13
to insight-v...@googlegroups.com
Revision: 1987
Author: chrsc...@googlemail.com
Date: Fri Jun 21 06:35:17 2013
Log: Static var moved inside the function body.

http://code.google.com/p/insight-vmi/source/detail?r=1987

Modified:
/trunk/libinsight/typeruleparser.cpp

=======================================
--- /trunk/libinsight/typeruleparser.cpp Tue Feb 12 09:35:31 2013
+++ /trunk/libinsight/typeruleparser.cpp Fri Jun 21 06:35:17 2013
@@ -483,10 +483,10 @@
}


-static XmlSchema ruleSchema;
-
const XmlSchema &TypeRuleParser::schema()
{
+ static XmlSchema ruleSchema;
+
if (ruleSchema.isEmpty()) {
QStringList osfAttr(OsFilter::supportedFilters().keys());
osfAttr.prepend(xml::priority);
Reply all
Reply to author
Forward
0 new messages