Skip to content

Commit

Permalink
Changed ::getenv to gazebo::common::getEnv.
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
  • Loading branch information
peci1 authored Nov 21, 2024
1 parent a020ddf commit 373e8a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gazebo/gazebo_shared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ void gazebo_shared::printVersion()
{
fprintf(stderr, "%s", GAZEBO_VERSION_HEADER);

char *ignoreEol = getenv("GAZEBO_SUPPRESS_EOL_WARNING");
const char *ignoreEol =
gazebo::common::getEnv("GAZEBO_SUPPRESS_EOL_WARNING");
if (ignoreEol != nullptr && strncmp(ignoreEol, "1", 1) == 0)
return;

Expand Down
2 changes: 1 addition & 1 deletion gazebo/gui/MainWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1678,7 +1678,7 @@ void MainWindow::ShowMenuBar(QMenuBar *_bar)
this->dataPtr->menuLayout->addWidget(this->dataPtr->menuBar);

if (!this->dataPtr->eolNotice) {
char *ignoreEol = getenv("GAZEBO_SUPPRESS_EOL_WARNING");
const char *ignoreEol = common::getEnv("GAZEBO_SUPPRESS_EOL_WARNING");
if (ignoreEol == nullptr || strncmp(ignoreEol, "1", 1) != 0) {
// Add Gazebo classic EOL notice label
this->dataPtr->eolNotice = new QLabel(this->dataPtr->menuBar);
Expand Down

0 comments on commit 373e8a1

Please sign in to comment.