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
parent
f37d3e2cd9
commit
7474a74bbb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue