VirtualBox

Ignore:
Timestamp:
Sep 28, 2007 7:02:15 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24951
Message:

getenv => RTEnvGet

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r5094 r5107  
    7474#include <iprt/param.h>
    7575#include <iprt/path.h>
     76#include <iprt/env.h>
    7677
    7778#if defined (VBOX_GUI_DEBUG)
     
    28052806{
    28062807#ifdef Q_OS_UNIX
    2807     const char *s = getenv ("LC_ALL");
     2808    const char *s = RTEnvGet ("LC_ALL");
    28082809    if (s == 0)
    2809         s = getenv ("LC_MESSAGES");
     2810        s = RTEnvGet ("LC_MESSAGES");
    28102811    if (s == 0)
    2811         s = getenv ("LANG");
     2812        s = RTEnvGet ("LANG");
    28122813    if (s != 0)
    28132814        return QLocale (s).name();
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r5078 r5107  
    4343#include <qlayout.h>
    4444#include <qvbox.h>
     45
     46#ifdef Q_WS_X11
     47#include <iprt/env.h>
     48#endif
    4549
    4650
     
    864868    /* make sure the VM process will start on the same display as the Selector */
    865869    {
    866         const char *display = getenv ("DISPLAY");
     870        const char *display = RTEnvGet ("DISPLAY");
    867871        if (display)
    868872            env.sprintf ("DISPLAY=%s", display);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette