Commit 67ad6557 authored by Jason Swails's avatar Jason Swails
Browse files

Squash the following warning:

/usr/local/openmm/include/openmm/CustomHbondForce.h:477:25: warning: field 'p3' will be initialized after field 'parameters' [-Wreorder]
        p1(p1), p2(p2), p3(p3), parameters(parameters) {
                            ^
I believe that the initializer is supposed to assign variables in the same
order they're declared in the class definition (not the same order they're
defined in the constructor argument list.
parent 8d15b972
......@@ -474,7 +474,7 @@ public:
GroupInfo() : p1(-1), p2(-1), p3(-1) {
}
GroupInfo(int p1, int p2, int p3, const std::vector<double>& parameters) :
p1(p1), p2(p2), p3(p3), parameters(parameters) {
parameters(parameters), p1(p1), p2(p2), p3(p3) {
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment