| 47 | } |
| 48 | |
| 49 | QString environmentVariable(const char *varName, const QString &defaultValue) |
| 50 | { |
| 51 | QByteArray value = qgetenv(varName); |
| 52 | if (value.isNull()) |
| 53 | return defaultValue; |
| 54 | return QString::fromLocal8Bit(value); |
| 55 | } |
| 56 | |
| 57 | /// Copy the `fileName` from `src` to `dst`. |
| 58 | /// This function overwrites if the file already exists in the destination. |
no outgoing calls
no test coverage detected