Skip to content

Commit

Permalink
re #10139 linux warning unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
NickDraper committed Aug 20, 2014
1 parent e8512d6 commit 54f2a8a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Expand Up @@ -138,15 +138,12 @@ namespace Mantid
std::vector<bool> getBoolParameter(const std::string& pname, bool recursive = true) const;

/**
* Get a string representation of a paramete
* Get a string representation of a parameter
* @param pname :: The name of the parameter
* @param recursive :: If true the search will walk up through the parent components
* @returns A empty string as this is not a parameterized component
*/
std::string getParameterAsString(const std::string& pname, bool recursive = true) const
{
return "";
}
std::string getParameterAsString(const std::string& pname, bool recursive = true) const;

/** returns the detector's group topology if it has been calculated before or invokes the procedure of
calculating such topology if it was not */
Expand Down
14 changes: 14 additions & 0 deletions Code/Mantid/Framework/Geometry/src/Instrument/DetectorGroup.cpp
Expand Up @@ -353,6 +353,20 @@ namespace Mantid
return std::map<std::string,ComponentID >();
}

/**
* Get a string representation of a parameter
* @param pname :: The name of the parameter
* @param recursive :: If true the search will walk up through the parent components
* @returns A empty string as this is not a parameterized component
*/
std::string DetectorGroup::getParameterAsString(const std::string& pname, bool recursive) const
{
(void) pname; //Avoid compiler warning
(void) recursive; //Avoid compiler warning
return "";
}


/**
* Get the bounding box for this group of detectors. It is simply the sum of the bounding boxes of its constituents.
* @param boundingBox :: [Out] The resulting bounding box is stored here.
Expand Down

0 comments on commit 54f2a8a

Please sign in to comment.