What's the naming rule for non-const static members?

Some classes give "s_" prefixes:
WebCore/page/DOMTimer.h:        static double s_minTimerInterval;
WebCore/page/GeolocationPositionCache.h:    static int s_instances;

FrameView gives "s" prefix:
WebCore/page/FrameView.h:    static double sCurrentPaintTimeStamp; // used
for detecting decoded resource thrash in the cache

Settings gives "g" prefix:
WebCore/page/Settings.h:        static bool gShouldPaintNativeControls;
WebCore/page/Settings.h:        static bool gShouldUseHighResolutionTimers;


And what about public and protected members?  The style guide has no
exceptions for them, so I think they should have m_.  But many classes in
WebCore don't use m_ for public members.

--
TAMURA Kent
Software Engineer, Google



_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to