Ignore:
Timestamp:
Jan 6, 2019 2:43:06 PM (4 months ago)
Author:
unxusr
Message:

formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/MyEventHandler.cpp

    r1665 r2385  
    55
    66#if defined(_MSC_VER)
    7 #pragma warning(disable:4786)
    8 #pragma warning(disable:4503)
     7#pragma warning(disable : 4786)
     8#pragma warning(disable : 4503)
    99#endif
    1010
    1111#include "MyEventHandler.hpp"
    12 
    1312
    1413//#############################################################################
     
    1918// Default Constructor
    2019//-------------------------------------------------------------------
    21 MyEventHandler::MyEventHandler ()
    22      : ClpEventHandler()
     20MyEventHandler::MyEventHandler()
     21  : ClpEventHandler()
    2322{
    2423}
     
    2726// Copy constructor
    2827//-------------------------------------------------------------------
    29 MyEventHandler::MyEventHandler (const MyEventHandler & rhs)
    30      : ClpEventHandler(rhs)
     28MyEventHandler::MyEventHandler(const MyEventHandler &rhs)
     29  : ClpEventHandler(rhs)
    3130{
    3231}
    3332
    3433// Constructor with pointer to model
    35 MyEventHandler::MyEventHandler(ClpSimplex * model)
    36      : ClpEventHandler(model)
     34MyEventHandler::MyEventHandler(ClpSimplex *model)
     35  : ClpEventHandler(model)
    3736{
    3837}
     
    4140// Destructor
    4241//-------------------------------------------------------------------
    43 MyEventHandler::~MyEventHandler ()
     42MyEventHandler::~MyEventHandler()
    4443{
    4544}
     
    4948//-------------------------------------------------------------------
    5049MyEventHandler &
    51 MyEventHandler::operator=(const MyEventHandler& rhs)
     50MyEventHandler::operator=(const MyEventHandler &rhs)
    5251{
    53      if (this != &rhs) {
    54           ClpEventHandler::operator=(rhs);
    55      }
    56      return *this;
     52  if (this != &rhs) {
     53    ClpEventHandler::operator=(rhs);
     54  }
     55  return *this;
    5756}
    5857//-------------------------------------------------------------------
    5958// Clone
    6059//-------------------------------------------------------------------
    61 ClpEventHandler * MyEventHandler::clone() const
     60ClpEventHandler *MyEventHandler::clone() const
    6261{
    63      return new MyEventHandler(*this);
     62  return new MyEventHandler(*this);
    6463}
    6564
    66 int
    67 MyEventHandler::event(Event whichEvent)
     65int MyEventHandler::event(Event whichEvent)
    6866{
    69      if (whichEvent == endOfValuesPass)
    70           return 0; // say optimal
    71      else
    72           return -1; // carry on
     67  if (whichEvent == endOfValuesPass)
     68    return 0; // say optimal
     69  else
     70    return -1; // carry on
    7371
    7472#if 0
     
    8684     else return -1;
    8785#endif
     86}
    8887
    89 
    90 }
     88/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
     89*/
Note: See TracChangeset for help on using the changeset viewer.