Remove unused placeholder from qErrnoWarning().

The intention probably was to use __FUNCTION__, but since
Qt logging can now be configured to print the function name
by setting environment variables, just remove it.

Change-Id: Ic87aebfea633dd91eda7376b33ca3b14d1cab93f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
bb10
Friedemann Kleint 2012-10-04 12:04:54 +02:00 committed by The Qt Project
parent f37d3e2cd9
commit 7474a74bbb
1 changed files with 3 additions and 3 deletions

View File

@ -633,7 +633,7 @@ IFileDialogEvents *QWindowsNativeFileDialogEventHandler::create(QWindowsNativeFi
IFileDialogEvents *result;
QWindowsNativeFileDialogEventHandler *eventHandler = new QWindowsNativeFileDialogEventHandler(nativeFileDialog);
if (FAILED(eventHandler->QueryInterface(IID_IFileDialogEvents, reinterpret_cast<void **>(&result)))) {
qErrnoWarning("%s: Unable to obtain IFileDialogEvents");
qErrnoWarning("Unable to obtain IFileDialogEvents");
return 0;
}
eventHandler->Release();
@ -727,7 +727,7 @@ bool QWindowsNativeFileDialogBase::init(const CLSID &clsId, const IID &iid)
HRESULT hr = CoCreateInstance(clsId, NULL, CLSCTX_INPROC_SERVER,
iid, reinterpret_cast<void **>(&m_fileDialog));
if (FAILED(hr)) {
qErrnoWarning("%s: CoCreateInstance failed");
qErrnoWarning("CoCreateInstance failed");
return false;
}
m_dialogEvents = QWindowsNativeFileDialogEventHandler::create(this);
@ -736,7 +736,7 @@ bool QWindowsNativeFileDialogBase::init(const CLSID &clsId, const IID &iid)
// Register event handler
hr = m_fileDialog->Advise(m_dialogEvents, &m_cookie);
if (FAILED(hr)) {
qErrnoWarning("%s: IFileDialog::Advise failed");
qErrnoWarning("IFileDialog::Advise failed");
return false;
}
if (QWindowsContext::verboseDialogs)