Fix missing C++ mode comment
Make method static