auditing performed, made some changes like removed std, or corrected the name of the file, and in come cases added the licence text where it was missing --gv

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1218 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
jinx 2006-09-17 01:16:37 +00:00
parent caa067c4c6
commit 925e8e7671
14 changed files with 38 additions and 34 deletions

View file

@ -32,9 +32,9 @@
#include <algorithm>
#include <cassert>
#include <functional>
#include <string>
#include <iostream>
using namespace std;
using namespace sgpem;
using namespace memory;
@ -216,10 +216,6 @@ ConcreteSimulation::set_policy(CPUPolicy* p) throw(CPUPolicyException)
{
stop();
// NOTE: restoring of the previous policy is done here because I
// couldn't think of a clean way to do it
// inside activate_policy()
try
{
CPUPoliciesGatekeeper::get_instance().activate_policy(&_history, p);
@ -236,13 +232,13 @@ ConcreteSimulation::set_policy(CPUPolicy* p) throw(CPUPolicyException)
{
_policy = NULL;
string msg = _("unable to change policy and to restore the previous: ");
std::string msg = _("unable to change policy and to restore the previous: ");
msg += e2.what();
throw CPUPolicyException(msg);
}
string msg = _("unable to change policy: ");
std::string msg = _("unable to change policy: ");
msg+= e1.what();
throw CPUPolicyException(msg);