diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-04-02 21:24:19 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-04-02 21:24:19 +0000 |
| commit | 9fedc8187f746960ea4608f7bb9e5e9b2667fd39 (patch) | |
| tree | b4290364c67a0a8b9b201472a3e9d5790b73b0ba /rbutil/rbutilqt/base/bootloaderinstallbase.cpp | |
| parent | c5d9516a68923fa863ea7984a985fce23e263ada (diff) | |
| download | rockbox-9fedc8187f746960ea4608f7bb9e5e9b2667fd39.zip rockbox-9fedc8187f746960ea4608f7bb9e5e9b2667fd39.tar.gz rockbox-9fedc8187f746960ea4608f7bb9e5e9b2667fd39.tar.bz2 rockbox-9fedc8187f746960ea4608f7bb9e5e9b2667fd39.tar.xz | |
Move utils.cpp functions into separate class and split it up.
Move class-less functions in utils.cpp into a new Utils class and make the old
functions static. This prevents clashes with system C functions. Rename some
functions to avoid macro problems (check() is a macro on OS X). Split out the
RockboxInfo class into a separate file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25441 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/base/bootloaderinstallbase.cpp')
| -rw-r--r-- | rbutil/rbutilqt/base/bootloaderinstallbase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp index f6fb33d..6a2db76 100644 --- a/rbutil/rbutilqt/base/bootloaderinstallbase.cpp +++ b/rbutil/rbutilqt/base/bootloaderinstallbase.cpp @@ -114,7 +114,7 @@ bool BootloaderInstallBase::backup(QString to) } QString tofile = to + "/" + QFileInfo(m_blfile).fileName(); qDebug() << "[BootloaderInstallBase] trying to backup" << m_blfile << "to" << tofile; - if(!QFile::copy(resolvePathCase(m_blfile), tofile)) { + if(!QFile::copy(Utils::resolvePathCase(m_blfile), tofile)) { emit logItem(tr("Creating backup copy failed."), LOGERROR); return false; } @@ -247,7 +247,7 @@ void BootloaderInstallBase::setBlFile(QStringList sl) { // figue which of the possible bootloader filenames is correct. for(int a = 0; a < sl.size(); a++) { - if(!resolvePathCase(sl.at(a)).isEmpty()) { + if(!Utils::resolvePathCase(sl.at(a)).isEmpty()) { m_blfile = sl.at(a); } } |