Changeset 68c923 for src


Ignore:
Timestamp:
Dec 28, 2011, 3:24:24 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
b136f6
Parents:
de29ad6
git-author:
Frederik Heber <heber@…> (11/29/11 08:22:26)
git-committer:
Frederik Heber <heber@…> (12/28/11 15:24:24)
Message:

Lots of small compiler warning fixes.

Issues:

  • non-virtual destructor despite virtual functions.
  • unused variables.
  • no break at end of switch case.
  • no value returned.
Location:
src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/FillWithMoleculeAction.cpp

    rde29ad6 r68c923  
    6868  molecule *filler = World::getInstance().getMolecule(MoleculeByOrder(-1)); // get last molecule
    6969  filler->SetNameFromFilename(params.fillername.string().c_str());
    70   molecule *Filling = NULL;
     70//    molecule *Filling = NULL;
    7171//    atom *first = NULL, *second = NULL, *third = NULL;
    7272//    first = World::getInstance().createAtom();
  • src/Actions/WorldAction/CenterInBoxAction.cpp

    rde29ad6 r68c923  
    5353  std::stringstream undostream;
    5454  boost::archive::text_oarchive oa(undostream);
    55   RealSpaceMatrix matrix(World::getInstance().getDomain().getM());
     55  const RealSpaceMatrix &matrix = World::getInstance().getDomain().getM();
    5656  oa << matrix;
    5757  std::vector< boost::shared_ptr<Vector> > OldPositions;
  • src/Box.cpp

    rde29ad6 r68c923  
    120120    default:
    121121      ASSERT(0,"No default case for this");
     122      break;
    122123    }
    123124
  • src/Graph/BondGraph.hpp

    rde29ad6 r68c923  
    199199    };
    200200    // skip headers
    201     unsigned int bondcount = 0;
    202201    for (unsigned int i=0;i<skiplines;i++)
    203202      input->getline(line,MAXSTRINGSIZE);
  • src/IPointCloud.hpp

    rde29ad6 r68c923  
    1414#endif
    1515
    16 
    17 #include <cstdio>
     16#include <string>
    1817
    1918class TesselPoint;
     
    2221/** Encapsulates a set of TesselPoints with an internal iterator.
    2322 */
    24 class IPointCloud {
     23struct IPointCloud {
    2524public:
    2625  virtual const std::string& GetName() const=0;
  • src/Parser/ChangeTracker.hpp

    rde29ad6 r68c923  
    4141  // private constructor and destructor due to singleton
    4242  ChangeTracker();
    43   ~ChangeTracker();
     43  virtual ~ChangeTracker();
    4444};
    4545
  • src/Tesselation/BoundaryTriangleSet.cpp

    rde29ad6 r68c923  
    192192    return false;
    193193  }
    194 }
    195 ;
     194  return true;
     195}
     196
    196197
    197198/** Finds the point on the triangle to the point \a *x.
  • src/UIElements/Menu/TextMenu/ActionMenuItem.hpp

    rde29ad6 r68c923  
    3030public:
    3131  ActionMenuItem(char,const std::string &,TxMenu* const,const std::string &);
    32   ~ActionMenuItem();
     32  virtual ~ActionMenuItem();
    3333
    3434  virtual void doTrigger();
  • src/UIElements/Menu/TextMenu/TextMenu.hpp

    rde29ad6 r68c923  
    6666   *
    6767   */
    68   ~TextMenu()
     68  virtual ~TextMenu()
    6969  {
    7070    ShortcutMap.clear();
Note: See TracChangeset for help on using the changeset viewer.