Skip to content

Commit

Permalink
Add using namespace std to a few places where this was expected but n…
Browse files Browse the repository at this point in the history
…ot specified.
  • Loading branch information
Chris Birkhold authored and bcoconni committed Nov 24, 2024
1 parent 3b8aa37 commit 70eb717
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion matlab/JSBSimInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ JSBSimInterface::~JSBSimInterface(void)
}

//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
bool JSBSimInterface::OpenAircraft(const string& acName)
bool JSBSimInterface::OpenAircraft(const std::string& acName)
{

if (!fdmExec->GetAircraft()->GetAircraftName().empty()) return false;
Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/FGInitialConditionTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ class FGInitialConditionTest : public CxxTest::TestSuite
}

void testBodyVelocity() {
using namespace std;

FGFDMExec fdmex;
FGInitialCondition ic(&fdmex);

Expand Down
2 changes: 2 additions & 0 deletions tests/unit_tests/FGLocationTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,8 @@ class FGLocationTest : public CxxTest::TestSuite

void testNavigationOnOblateEarth()
{
using namespace std;

const double a = 20925646.32546; // WGS84 semimajor axis length in feet
const double b = 20855486.5951; // WGS84 semiminor axis length in feet
JSBSim::FGLocation l;
Expand Down

0 comments on commit 70eb717

Please sign in to comment.