Skip to content

Commit

Permalink
Refs #3866: class_maker minor fix
Browse files Browse the repository at this point in the history
... so as to avoid infuriating git commit hook complaint about whitespace
  • Loading branch information
Janik Zikovsky committed Nov 6, 2011
1 parent 5b7492a commit f2c8153
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions Code/Mantid/Build/class_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def write_header(subproject, classname, filename, args):
virtual const std::string name() const;
virtual int version() const;
virtual const std::string category() const;
private:
virtual void initDocs();
void init();
Expand All @@ -39,7 +39,7 @@ def write_header(subproject, classname, filename, args):
pass

alg_class_declare = " : public API::Algorithm"
alg_include = """#include "MantidAPI/Algorithm.h" """
alg_include = '#include "MantidAPI/Algorithm.h"'

if not args.alg:
algorithm_header = ""
Expand Down Expand Up @@ -95,10 +95,12 @@ class DLLExport %s %s
} // namespace %s
} // namespace Mantid
#endif /* %s */
""" % (guard, guard, alg_include, subproject, classname,
author, datetime.datetime.now().date(),
datetime.datetime.now().date().year, classname, alg_class_declare, classname, classname, algorithm_header, subproject, guard)
#endif /* %s */""" % (guard, guard,
alg_include, subproject, classname,
author, datetime.datetime.now().date(),
datetime.datetime.now().date().year, classname, alg_class_declare,
classname, classname, algorithm_header, subproject, guard)

f.write(s)
f.close()

Expand Down Expand Up @@ -199,9 +201,9 @@ def write_source(subproject, classname, filename, args):
%s
} // namespace Mantid
} // namespace %s
""" % (subproject, args.subfolder, classname, subproject, algorithm_top, classname, classname, classname, classname, algorithm_source, subproject)
} // namespace %s""" % (
subproject, args.subfolder, classname, subproject, algorithm_top,
classname, classname, classname, classname, algorithm_source, subproject)
f.write(s)
f.close()

Expand Down Expand Up @@ -283,9 +285,10 @@ class %sTest : public CxxTest::TestSuite
};
#endif /* %s */
""" % (guard, guard, subproject, args.subfolder, classname, subproject, classname, classname, classname, classname, algorithm_test, guard)
#endif /* %s */""" % (
guard, guard, subproject, args.subfolder, classname,
subproject, classname, classname, classname, classname,
algorithm_test, guard)
f.write(s)
f.close()

Expand Down

0 comments on commit f2c8153

Please sign in to comment.