Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5796 for code/branches/core5


Ignore:
Timestamp:
Sep 26, 2009, 10:15:53 PM (15 years ago)
Author:
landauf
Message:

replaced delete with destroy() in core

Location:
code/branches/core5/src/libraries/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/Identifier.cc

    r5784 r5796  
    203203            {
    204204                BaseObject* temp = it->second->fabricate(0);
    205                 delete temp;
     205                temp->destroy();
    206206            }
    207207        }
  • code/branches/core5/src/libraries/core/Loader.cc

    r5747 r5796  
    103103        {
    104104            if (mask.isIncluded(it->getIdentifier()))
    105                 delete (*(it++));
     105                (it++)->destroy();
    106106            else
    107107                ++it;
     
    204204        {
    205205            if ((it->getFile() == file) && mask.isIncluded(it->getIdentifier()))
    206                 delete (*(it++));
     206                (it++)->destroy();
    207207            else
    208208                ++it;
  • code/branches/core5/src/libraries/core/Shell.cc

    r5738 r5796  
    8888        OutputHandler::getOutStream().setOutputBuffer(0);
    8989        if (this->inputBuffer_)
    90             delete this->inputBuffer_;
     90            this->inputBuffer_->destroy();
    9191    }
    9292
  • code/branches/core5/src/libraries/core/input/InputManager.cc

    r5747 r5796  
    289289
    290290        // Destroy calibrator helper handler and state
    291         delete keyDetector_;
     291        keyDetector_->destroy();
    292292        this->destroyState("calibrator");
    293293        // Destroy KeyDetector and state
    294         delete calibratorCallbackHandler_;
     294        calibratorCallbackHandler_->destroy();
    295295        this->destroyState("detector");
    296296        // destroy the empty InputState
     
    722722        }
    723723        statesByName_.erase(state->getName());
    724         delete state;
     724        state->destroy();
    725725    }
    726726}
Note: See TracChangeset for help on using the changeset viewer.