Skip to content

Commit

Permalink
Fix typo in Deprecated Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Oct 12, 2015
1 parent 4e24cdf commit ca2ca76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Framework/API/inc/MantidAPI/DeprecatedAlgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MANTID_API_DLL DeprecatedAlgorithm {
/// Replacement version, -1 indicates latest
int m_replacementVersion;
/// The date that the algorithm was first deprecated.
std::string m_deprecatdDate;
std::string m_deprecatedDate;
};

} // namespace API
Expand Down
10 changes: 5 additions & 5 deletions Framework/API/src/DeprecatedAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Kernel::Logger g_log("DeprecatedAlgorithm");

/// Does nothing other than make the compiler happy.
DeprecatedAlgorithm::DeprecatedAlgorithm()
: m_replacementAlgorithm(), m_replacementVersion(-1), m_deprecatdDate() {}
: m_replacementAlgorithm(), m_replacementVersion(-1), m_deprecatedDate() {}

/// Does nothing other than make the compiler happy.
DeprecatedAlgorithm::~DeprecatedAlgorithm() {}
Expand All @@ -37,7 +37,7 @@ void DeprecatedAlgorithm::useAlgorithm(const std::string &replacement,

/// The date the algorithm was deprecated on
void DeprecatedAlgorithm::deprecatedDate(const std::string &date) {
this->m_deprecatdDate = "";
this->m_deprecatedDate = "";
if (date.empty()) {
// TODO warn people that it wasn't set
return;
Expand All @@ -46,7 +46,7 @@ void DeprecatedAlgorithm::deprecatedDate(const std::string &date) {
// TODO warn people that it wasn't set
return;
}
this->m_deprecatdDate = date;
this->m_deprecatedDate = date;
}

/// This merely prints the deprecation error for people to see.
Expand All @@ -57,8 +57,8 @@ const std::string DeprecatedAlgorithm::deprecationMsg(const IAlgorithm *algo) {

msg << "deprecated";

if (!this->m_deprecatdDate.empty())
msg << " (on " << this->m_deprecatdDate << ")";
if (!this->m_deprecatedDate.empty())
msg << " (on " << this->m_deprecatedDate << ")";

if (this->m_replacementAlgorithm.empty()) {
msg << " and has no replacement.";
Expand Down

0 comments on commit ca2ca76

Please sign in to comment.