Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.cpp

    r6adb96 r49e1ae  
    44 *
    55 */
     6
     7#include <cstring>
    68
    79#include "atom.hpp"
     
    5961  delete(start);
    6062};
    61 
    62 
    63 // getter and setter
    64 const std::string molecule::getName(){
    65   return std::string(name);
    66 }
    67 
    68 void molecule::setName(const std::string _name){
    69   START_OBSERVER;
    70   strncpy(name,_name.c_str(),MAXSTRINGSIZE);
    71   FINISH_OBSERVER;
    72 }
    7363
    7464
     
    599589  else
    600590    molname = filename; // contains no slashes
    601   char *endname = strchr(molname, '.');
     591  const char *endname = strchr(molname, '.');
    602592  if ((endname == NULL) || (endname < molname))
    603593    length = strlen(molname);
     
    10931083  }
    10941084};
    1095 
    1096 void molecule::flipActiveFlag(){
    1097   ActiveFlag = !ActiveFlag;
    1098 }
Note: See TracChangeset for help on using the changeset viewer.