Commit e723035f authored by florent's avatar florent Committed by florent
Browse files

Fix various bugs that were not visible since the file was not included

  * include/hppModel/hppModel/hppBody.h: add const & to some std::string
    parameters of functions,
    remove inclusion of non-existing header file.
  * src/hppBody.cpp: add const & to some std::string
    parameters of functions.
parent 2bb1f11c
......@@ -13,7 +13,6 @@ INCLUDE
**************************************/
#include "KineoUtility/kitDefine.h"
#include "KineoWorks2/kwsKCDBody.h"
#include "kcd2/kcdAnalysisType.h"
#include "kwsKcd2/kwsKCDBody.h"
......@@ -62,7 +61,7 @@ public:
\param inName Name of the new body.
\return A shared pointer to a new body.
*/
static ChppBodyShPtr create(std::string inName);
static ChppBodyShPtr create(const std::string& inName);
/**
\brief Get name of object.
......@@ -156,7 +155,7 @@ protected:
/**
\brief Constructor by name.
*/
ChppBody(std::string inName), attName(inName) {};
ChppBody(const std::string& inName): attName(inName) {};
/**
\brief Initialization of body
......
......@@ -34,7 +34,7 @@
//=============================================================================
ChppBodyShPtr ChppBody::create(std::string inName)
ChppBodyShPtr ChppBody::create(const std::string& inName)
{
ChppBody* hppBody = new ChppBody(inName);
ChppBodyShPtr hppBodyShPtr(hppBody);
......
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