VirtualBox

Changeset 3861 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 26, 2007 9:15:14 AM (18 years ago)
Author:
vboxsync
Message:

use generic functions for determining paths instead of home-brewn solutions

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

Legend:

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

    r3859 r3861  
    6464#define BOOL PRBool
    6565#endif
     66
     67#include <iprt/param.h>
     68#include <iprt/path.h>
    6669
    6770#if defined (VBOX_GUI_DEBUG)
     
    19982001    QString selectedLangId = gVBoxBuiltInLangName;
    19992002
    2000     QString nlsPath = qApp->applicationDirPath() + gVBoxLangSubDir;
     2003    char szNlsPath[RTPATH_MAX];
     2004    int rc;
     2005
     2006    RTPathAppPrivateNoArch(szNlsPath, sizeof(szNlsPath));
     2007    Assert(RT_SUCCESS(rc));
     2008
     2009    QString nlsPath = QString(szNlsPath) + gVBoxLangSubDir;
    20012010    QDir nlsDir (nlsPath);
    20022011
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r3828 r3861  
    4040
    4141#include <iprt/err.h>
     42#include <iprt/param.h>
     43#include <iprt/path.h>
    4244
    4345#if defined (Q_WS_WIN32)
     
    17611763              HH_DISPLAY_TOPIC, NULL);
    17621764#elif defined (Q_WS_X11)
    1763     QString fullProgPath = qApp->applicationDirPath();
     1765    char szDocsPath[RTPATH_MAX];
     1766    int rc;
     1767
     1768    RTPathAppDocs(szDocsPath, sizeof(szDocsPath));
     1769    Assert(RT_SUCCESS(rc));
     1770
     1771    QString fullProgPath = QString(szDocsPath);
    17641772    QProcess kchmViewer (fullProgPath + "/kchmviewer");
    17651773    kchmViewer.addArgument (fullProgPath + "/VirtualBox.chm");
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