forked from qt-creator/qt-creator
Fix warning for ';'
The macro already contain a ';'. Removing the argument or [[maybe_unused]] would maybe even a better approach. Change-Id: I31750d10a4f252c667e7c0e5e13bf1085dbe11a2 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -205,8 +205,8 @@ void setToolTip(QObjectPtr obj, const QString &tip)
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
obj->setToolTip(tip);
|
||||
#else
|
||||
Q_UNUSED(obj);
|
||||
Q_UNUSED(tip);
|
||||
Q_UNUSED(obj)
|
||||
Q_UNUSED(tip)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -208,7 +208,7 @@ void DockFocusController::onFocusWindowChanged(QWindow *focusWindow)
|
||||
|
||||
void DockFocusController::onApplicationFocusChanged(QWidget *focusedOld, QWidget *focusedNow)
|
||||
{
|
||||
Q_UNUSED(focusedOld);
|
||||
Q_UNUSED(focusedOld)
|
||||
|
||||
// Ignore focus changes if we are restoring state, or if user clicked a tab which in turn
|
||||
// caused the focus change.
|
||||
|
@@ -33,7 +33,7 @@ void PushButton::setButtonOrientation(Orientation orientation)
|
||||
|
||||
void PushButton::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
|
||||
QStylePainter painter(this);
|
||||
QStyleOptionButton option;
|
||||
|
@@ -1270,7 +1270,7 @@ void PropertiesView::MView::visitMDiagramBehind(const MDiagram *diagram)
|
||||
|
||||
void PropertiesView::MView::visitDObjectBefore(const DObject *object)
|
||||
{
|
||||
Q_UNUSED(object);
|
||||
Q_UNUSED(object)
|
||||
}
|
||||
|
||||
void PropertiesView::MView::onStereotypesChanged(const QString &stereotypes)
|
||||
|
@@ -327,7 +327,7 @@ const Style *DefaultStyleEngine::applyObjectStyle(const Style *baseStyle, const
|
||||
|
||||
const Style *DefaultStyleEngine::applyRelationStyle(const Style *baseStyle, ElementType elementType, const RelationVisuals &relationVisuals, const Parameters *parameters)
|
||||
{
|
||||
Q_UNUSED(parameters);
|
||||
Q_UNUSED(parameters)
|
||||
|
||||
RelationStyleKey key(elementType, relationVisuals);
|
||||
const Style *derivedStyle = m_relationStyleMap.value(key);
|
||||
|
@@ -40,19 +40,19 @@ public:
|
||||
|
||||
virtual void importFile(const QString &jsfile, const QString &module, int line, int column)
|
||||
{
|
||||
Q_UNUSED(jsfile);
|
||||
Q_UNUSED(module);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(jsfile)
|
||||
Q_UNUSED(module)
|
||||
Q_UNUSED(line)
|
||||
Q_UNUSED(column)
|
||||
}
|
||||
|
||||
virtual void importModule(const QString &uri, const QString &version, const QString &module, int line, int column)
|
||||
{
|
||||
Q_UNUSED(uri);
|
||||
Q_UNUSED(version);
|
||||
Q_UNUSED(module);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(uri)
|
||||
Q_UNUSED(version)
|
||||
Q_UNUSED(module)
|
||||
Q_UNUSED(line)
|
||||
Q_UNUSED(column)
|
||||
}
|
||||
};
|
||||
|
||||
|
@@ -1736,8 +1736,8 @@ ModelManagerInterface::ProjectInfo ModelManagerInterface::defaultProjectInfo() c
|
||||
ModelManagerInterface::ProjectInfo ModelManagerInterface::defaultProjectInfoForProject(
|
||||
ProjectExplorer::Project *project, const FilePaths &hiddenRccFolders) const
|
||||
{
|
||||
Q_UNUSED(project);
|
||||
Q_UNUSED(hiddenRccFolders);
|
||||
Q_UNUSED(project)
|
||||
Q_UNUSED(hiddenRccFolders)
|
||||
return ModelManagerInterface::ProjectInfo();
|
||||
}
|
||||
|
||||
|
@@ -13,9 +13,9 @@ public:
|
||||
virtual void onOsc(int cmd, std::string_view str, bool initial, bool final) = 0;
|
||||
|
||||
virtual void onBell() {}
|
||||
virtual void onTitle(const QString &title) { Q_UNUSED(title); }
|
||||
virtual void onTitle(const QString &title) { Q_UNUSED(title) }
|
||||
|
||||
virtual void onSetClipboard(const QByteArray &text) { Q_UNUSED(text); }
|
||||
virtual void onSetClipboard(const QByteArray &text) { Q_UNUSED(text) }
|
||||
virtual void onGetClipboard() {}
|
||||
};
|
||||
|
||||
|
@@ -364,7 +364,7 @@ struct TerminalSurfacePrivate
|
||||
}
|
||||
int movecursor(VTermPos pos, VTermPos oldpos, int visible)
|
||||
{
|
||||
Q_UNUSED(oldpos);
|
||||
Q_UNUSED(oldpos)
|
||||
Cursor oldCursor = q->cursor();
|
||||
m_cursor.position = {pos.col, pos.row};
|
||||
m_cursor.visible = visible > 0;
|
||||
|
@@ -112,7 +112,7 @@ public:
|
||||
|
||||
virtual qint64 writeToPty(const QByteArray &data)
|
||||
{
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(data)
|
||||
return 0;
|
||||
}
|
||||
void writeToTerminal(const QByteArray &data, bool forceFlush);
|
||||
@@ -127,23 +127,25 @@ public:
|
||||
|
||||
virtual bool resizePty(QSize newSize)
|
||||
{
|
||||
Q_UNUSED(newSize);
|
||||
Q_UNUSED(newSize)
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void setClipboard(const QString &text) { Q_UNUSED(text); }
|
||||
virtual void setClipboard(const QString &text) { Q_UNUSED(text) }
|
||||
virtual std::optional<Link> toLink(const QString &text)
|
||||
{
|
||||
Q_UNUSED(text);
|
||||
Q_UNUSED(text)
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
virtual void selectionChanged(const std::optional<Selection> &newSelection)
|
||||
{
|
||||
Q_UNUSED(newSelection);
|
||||
Q_UNUSED(newSelection)
|
||||
}
|
||||
virtual void linkActivated(const Link &link) { Q_UNUSED(link); }
|
||||
virtual void contextMenuRequested(const QPoint &pos) { Q_UNUSED(pos); }
|
||||
|
||||
virtual void linkActivated(const Link &link) { Q_UNUSED(link) }
|
||||
|
||||
virtual void contextMenuRequested(const QPoint &pos) { Q_UNUSED(pos) }
|
||||
|
||||
virtual void surfaceChanged(){};
|
||||
|
||||
|
@@ -396,7 +396,7 @@ Result<FilePath> DeviceFileAccess::createTempFile(const FilePath &filePath)
|
||||
Utils::Result<std::unique_ptr<FilePathWatcher>> DeviceFileAccess::watch(
|
||||
const FilePath &path) const
|
||||
{
|
||||
Q_UNUSED(path);
|
||||
Q_UNUSED(path)
|
||||
return ResultError(Tr::tr("watch is not implemented."));
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ bool UnavailableDeviceFileAccess::hasHardLinks(const FilePath &filePath) const
|
||||
|
||||
Result<> UnavailableDeviceFileAccess::ensureWritableDirectory(const FilePath &filePath) const
|
||||
{
|
||||
Q_UNUSED(filePath);
|
||||
Q_UNUSED(filePath)
|
||||
return ResultError(unavailableMessage());
|
||||
}
|
||||
|
||||
@@ -636,7 +636,7 @@ Result<FilePath> UnavailableDeviceFileAccess::createTempFile(const FilePath &fil
|
||||
Result<std::unique_ptr<FilePathWatcher>>
|
||||
UnavailableDeviceFileAccess::watch(const FilePath &path) const
|
||||
{
|
||||
Q_UNUSED(path);
|
||||
Q_UNUSED(path)
|
||||
return ResultError(unavailableMessage());
|
||||
}
|
||||
|
||||
@@ -1201,13 +1201,13 @@ Utils::Result<std::unique_ptr<FilePathWatcher>> DesktopDeviceFileAccess::watch(
|
||||
|
||||
QTextCodec *DesktopDeviceFileAccess::processStdOutCodec(const FilePath &executable) const
|
||||
{
|
||||
Q_UNUSED(executable);
|
||||
Q_UNUSED(executable)
|
||||
return QTextCodec::codecForLocale();
|
||||
}
|
||||
|
||||
QTextCodec *DesktopDeviceFileAccess::processStdErrCodec(const FilePath &executable) const
|
||||
{
|
||||
Q_UNUSED(executable);
|
||||
Q_UNUSED(executable)
|
||||
return QTextCodec::codecForLocale();
|
||||
}
|
||||
|
||||
|
@@ -2537,7 +2537,7 @@ QTCREATOR_UTILS_EXPORT bool operator>=(const FilePath &first, const FilePath &se
|
||||
|
||||
QTCREATOR_UTILS_EXPORT size_t qHash(const FilePath &filePath, uint seed)
|
||||
{
|
||||
Q_UNUSED(seed);
|
||||
Q_UNUSED(seed)
|
||||
|
||||
if (filePath.m_hash == 0) {
|
||||
if (filePath.caseSensitivity() == Qt::CaseSensitive)
|
||||
|
@@ -1747,8 +1747,8 @@ QMimeData *FileSystemModel::mimeData(const QModelIndexList &indexes) const
|
||||
bool FileSystemModel::dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent)
|
||||
{
|
||||
Q_UNUSED(row);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(row)
|
||||
Q_UNUSED(column)
|
||||
if (!parent.isValid() || isReadOnly())
|
||||
return false;
|
||||
|
||||
|
@@ -193,7 +193,7 @@ static bool saveFileSupportedFileSystem(const FilePath &path)
|
||||
}
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(path);
|
||||
Q_UNUSED(path)
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
@@ -296,7 +296,7 @@ QStringList FSEngineImpl::entryList(QDir::Filters filters, const QStringList &fi
|
||||
|
||||
QAbstractFileEngine::FileFlags FSEngineImpl::fileFlags(FileFlags type) const
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(type)
|
||||
return {g_filePathInfoCache.cached(m_filePath, createCacheData).filePathInfo.fileFlags.toInt()};
|
||||
}
|
||||
|
||||
|
@@ -20,7 +20,7 @@ IconButton::IconButton(QWidget *parent)
|
||||
|
||||
void IconButton::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
|
||||
QPainter p(this);
|
||||
QRect r(QPoint(), size());
|
||||
|
@@ -29,7 +29,7 @@ IconDisplay::~IconDisplay() = default;
|
||||
|
||||
void IconDisplay::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
|
||||
QPainter painter(this);
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
|
@@ -145,7 +145,7 @@ public:
|
||||
|
||||
QSizeF intrinsicSize(QTextDocument *doc, int pos, const QTextFormat &format) override
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
Q_UNUSED(pos)
|
||||
|
||||
if (!doc || !format.hasProperty(isCopiedPropertyId()))
|
||||
return QSizeF(0, 0);
|
||||
@@ -163,7 +163,7 @@ public:
|
||||
int pos,
|
||||
const QTextFormat &format) override
|
||||
{
|
||||
Q_UNUSED(pos);
|
||||
Q_UNUSED(pos)
|
||||
|
||||
if (!doc || !format.hasProperty(isCopiedPropertyId()))
|
||||
return;
|
||||
@@ -300,8 +300,8 @@ public:
|
||||
virtual QSizeF intrinsicSize(
|
||||
QTextDocument *doc, int posInDocument, const QTextFormat &format) override
|
||||
{
|
||||
Q_UNUSED(doc);
|
||||
Q_UNUSED(posInDocument);
|
||||
Q_UNUSED(doc)
|
||||
Q_UNUSED(posInDocument)
|
||||
QSize result = Utils::Icons::UNKNOWN_FILE.icon().actualSize(QSize(16, 16));
|
||||
QString name = format.toImageFormat().name();
|
||||
|
||||
@@ -329,8 +329,8 @@ public:
|
||||
int posInDocument,
|
||||
const QTextFormat &format) override
|
||||
{
|
||||
Q_UNUSED(document);
|
||||
Q_UNUSED(posInDocument);
|
||||
Q_UNUSED(document)
|
||||
Q_UNUSED(posInDocument)
|
||||
|
||||
const QString name = format.toImageFormat().name();
|
||||
Entry::Pointer *entryPtr = m_entries.object(name);
|
||||
|
@@ -591,7 +591,7 @@ MimeBinaryProvider::loadMimeTypeExtra(const QString &mimeName)
|
||||
}
|
||||
return it;
|
||||
#else
|
||||
Q_UNUSED(mimeName);
|
||||
Q_UNUSED(mimeName)
|
||||
qWarning("Cannot load mime type since QXmlStreamReader is not available.");
|
||||
return m_mimetypeExtra.cend();
|
||||
#endif // feature xmlstreamreader
|
||||
|
@@ -305,7 +305,7 @@ bool MimeTypeParserBase::parse(QIODevice *dev, const QString &fileName, QString
|
||||
|
||||
return true;
|
||||
#else
|
||||
Q_UNUSED(dev);
|
||||
Q_UNUSED(dev)
|
||||
if (errorMessage)
|
||||
*errorMessage = QString::fromLatin1("QXmlStreamReader is not available, cannot parse '%1'.").arg(fileName);
|
||||
return false;
|
||||
|
@@ -75,7 +75,7 @@ public:
|
||||
// The input is to be considered "complete" for parsing purposes.
|
||||
virtual Result handleLine(const QString &line, OutputFormat format) = 0;
|
||||
|
||||
virtual bool handleLink(const QString &href) { Q_UNUSED(href); return false; }
|
||||
virtual bool handleLink(const QString &href) { Q_UNUSED(href) return false; }
|
||||
virtual bool hasFatalErrors() const { return false; }
|
||||
virtual void flush() {}
|
||||
virtual void runPostPrintActions(QPlainTextEdit *) {}
|
||||
|
@@ -27,7 +27,7 @@ ShowPasswordButton::ShowPasswordButton(QWidget *parent)
|
||||
|
||||
void ShowPasswordButton::paintEvent(QPaintEvent *e)
|
||||
{
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
QIcon icon = isChecked() ? Utils::Icons::EYE_OPEN_TOOLBAR.icon()
|
||||
: Utils::Icons::EYE_CLOSED_TOOLBAR.icon();
|
||||
QPainter p(this);
|
||||
|
@@ -152,7 +152,7 @@ public:
|
||||
static inline bool shouldEnableInputMethod(PlainTextEdit *control)
|
||||
{
|
||||
#if defined(Q_OS_ANDROID)
|
||||
Q_UNUSED(control);
|
||||
Q_UNUSED(control)
|
||||
return !control->isReadOnly() || (control->textInteractionFlags() & Qt::TextSelectableByMouse);
|
||||
#else
|
||||
return !control->isReadOnly();
|
||||
@@ -575,7 +575,7 @@ qreal PlainTextEditPrivate::verticalOffset(int topBlock, int topLine) const
|
||||
PlainTextDocumentLayout *documentLayout = qobject_cast<PlainTextDocumentLayout*>(doc->documentLayout());
|
||||
Q_ASSERT(documentLayout);
|
||||
QRectF r = documentLayout->blockBoundingRect(currentBlock);
|
||||
Q_UNUSED(r);
|
||||
Q_UNUSED(r)
|
||||
QTextLayout *layout = currentBlock.layout();
|
||||
if (layout && topLine <= layout->lineCount()) {
|
||||
QTextLine line = layout->lineAt(topLine - 1);
|
||||
@@ -1894,8 +1894,8 @@ void PlainTextEdit::keyReleaseEvent(QKeyEvent *e)
|
||||
*/
|
||||
QVariant PlainTextEdit::loadResource(int type, const QUrl &name)
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(name);
|
||||
Q_UNUSED(type)
|
||||
Q_UNUSED(name)
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
@@ -275,7 +275,7 @@ WidgetTextControlPrivate::WidgetTextControlPrivate(WidgetTextControl *q)
|
||||
bool WidgetTextControlPrivate::cursorMoveKeyEvent(QKeyEvent *e)
|
||||
{
|
||||
#ifdef QT_NO_SHORTCUT
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
#endif
|
||||
|
||||
if (cursor.isNull())
|
||||
@@ -810,9 +810,9 @@ void WidgetTextControlPrivate::_q_contentsChanged(int from, int charsRemoved, in
|
||||
delete ev;
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(from);
|
||||
Q_UNUSED(charsRemoved);
|
||||
Q_UNUSED(charsAdded);
|
||||
Q_UNUSED(from)
|
||||
Q_UNUSED(charsRemoved)
|
||||
Q_UNUSED(charsAdded)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1049,7 +1049,7 @@ void WidgetTextControl::setTextCursor(const QTextCursor &cursor, bool selectionC
|
||||
if (selectionClipboard)
|
||||
d->setClipboardSelection();
|
||||
#else
|
||||
Q_UNUSED(selectionClipboard);
|
||||
Q_UNUSED(selectionClipboard)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1503,8 +1503,8 @@ accept:
|
||||
|
||||
QVariant WidgetTextControl::loadResource(int type, const QUrl &name)
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(name);
|
||||
Q_UNUSED(type)
|
||||
Q_UNUSED(name)
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
@@ -2018,12 +2018,12 @@ bool WidgetTextControlPrivate::sendMouseEventToInputContext(
|
||||
QEvent *e, QEvent::Type eventType, Qt::MouseButton button, const QPointF &pos,
|
||||
Qt::KeyboardModifiers modifiers, Qt::MouseButtons buttons, const QPoint &globalPos)
|
||||
{
|
||||
Q_UNUSED(eventType);
|
||||
Q_UNUSED(button);
|
||||
Q_UNUSED(pos);
|
||||
Q_UNUSED(modifiers);
|
||||
Q_UNUSED(buttons);
|
||||
Q_UNUSED(globalPos);
|
||||
Q_UNUSED(eventType)
|
||||
Q_UNUSED(button)
|
||||
Q_UNUSED(pos)
|
||||
Q_UNUSED(modifiers)
|
||||
Q_UNUSED(buttons)
|
||||
Q_UNUSED(globalPos)
|
||||
#if !defined(QT_NO_IM)
|
||||
|
||||
if (isPreediting()) {
|
||||
@@ -2042,7 +2042,7 @@ bool WidgetTextControlPrivate::sendMouseEventToInputContext(
|
||||
}
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(e);
|
||||
Q_UNUSED(e)
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
@@ -2050,9 +2050,9 @@ bool WidgetTextControlPrivate::sendMouseEventToInputContext(
|
||||
void WidgetTextControlPrivate::contextMenuEvent(const QPoint &screenPos, const QPointF &docPos, QWidget *contextWidget)
|
||||
{
|
||||
#ifdef QT_NO_CONTEXTMENU
|
||||
Q_UNUSED(screenPos);
|
||||
Q_UNUSED(docPos);
|
||||
Q_UNUSED(contextWidget);
|
||||
Q_UNUSED(screenPos)
|
||||
Q_UNUSED(docPos)
|
||||
Q_UNUSED(contextWidget)
|
||||
#else
|
||||
QMenu *menu = q->createStandardContextMenu(docPos, contextWidget);
|
||||
if (!menu)
|
||||
@@ -3322,7 +3322,7 @@ void WidgetTextControlPrivate::append(const QString &text, Qt::TextFormat format
|
||||
tmp.insertText(text);
|
||||
}
|
||||
#else
|
||||
Q_UNUSED(format);
|
||||
Q_UNUSED(format)
|
||||
tmp.insertText(text);
|
||||
#endif // QT_NO_TEXTHTMLPARSER
|
||||
if (!cursor.hasSelection())
|
||||
|
@@ -418,7 +418,7 @@ void TerminalInterface::start()
|
||||
|
||||
qint64 TerminalInterface::write(const QByteArray &data)
|
||||
{
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(data)
|
||||
QTC_CHECK(false);
|
||||
return -1;
|
||||
}
|
||||
|
@@ -66,7 +66,7 @@ static int _open(struct archive *a, void *client_data)
|
||||
|
||||
static la_ssize_t _read(struct archive *a, void *client_data, const void **buff)
|
||||
{
|
||||
Q_UNUSED(a);
|
||||
Q_UNUSED(a)
|
||||
ReadData *data = static_cast<ReadData *>(client_data);
|
||||
*buff = data->data;
|
||||
return data->file.read(data->data, 10240);
|
||||
@@ -74,7 +74,7 @@ static la_ssize_t _read(struct archive *a, void *client_data, const void **buff)
|
||||
|
||||
int _close(struct archive *a, void *client_data)
|
||||
{
|
||||
Q_UNUSED(a);
|
||||
Q_UNUSED(a)
|
||||
ReadData *data = static_cast<ReadData *>(client_data);
|
||||
data->file.close();
|
||||
return ARCHIVE_OK;
|
||||
|
@@ -33,7 +33,7 @@ void JavaParser::setSourceDirectory(const FilePath &sourceDirectory)
|
||||
|
||||
OutputLineParser::Result JavaParser::handleLine(const QString &line, OutputFormat type)
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(type)
|
||||
static const QRegularExpression javaRegExp("^(.*\\[javac\\]\\s)(.*\\.java):(\\d+):(.*)$");
|
||||
|
||||
const QRegularExpressionMatch match = javaRegExp.match(line);
|
||||
|
@@ -84,7 +84,7 @@ class SplashScreenWidget : public QWidget
|
||||
private:
|
||||
void paintEvent(QPaintEvent *event) override
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
QPainter painter(this);
|
||||
painter.setPen(QPen(Qt::gray, 1));
|
||||
painter.setBrush(QBrush(m_parentWidget->m_backgroundColor));
|
||||
|
@@ -159,7 +159,7 @@ void Chart::clear()
|
||||
|
||||
void Chart::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
QPainter painter(this);
|
||||
// painter.fillRect(rect(), creatorColor(Theme::Token_Background_Default)); left for the future
|
||||
painter.fillRect(rect(), creatorColor(Theme::BackgroundColorNormal));
|
||||
|
@@ -20,7 +20,7 @@ class LlvmFileAdapter : public File
|
||||
public:
|
||||
LlvmFileAdapter(const Twine &Path)
|
||||
{
|
||||
Q_UNUSED(Path);
|
||||
Q_UNUSED(Path)
|
||||
}
|
||||
/// Destroy the file after closing it (if open).
|
||||
/// Sub-classes should generally call close() inside their destructors. We
|
||||
@@ -47,8 +47,8 @@ public:
|
||||
bool RequiresNullTerminator = true,
|
||||
bool IsVolatile = false) override
|
||||
{
|
||||
Q_UNUSED(RequiresNullTerminator);
|
||||
Q_UNUSED(IsVolatile);
|
||||
Q_UNUSED(RequiresNullTerminator)
|
||||
Q_UNUSED(IsVolatile)
|
||||
|
||||
const FilePath path = FilePath::fromUserInput(QString::fromStdString(Name.str()));
|
||||
const Result<QByteArray> contents = path.fileContents(FileSize, 0);
|
||||
@@ -102,8 +102,8 @@ public:
|
||||
/// \note The 'end' iterator is directory_iterator().
|
||||
vfs::directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override
|
||||
{
|
||||
Q_UNUSED(Dir);
|
||||
Q_UNUSED(EC);
|
||||
Q_UNUSED(Dir)
|
||||
Q_UNUSED(EC)
|
||||
Q_UNIMPLEMENTED();
|
||||
return {};
|
||||
}
|
||||
@@ -112,7 +112,7 @@ public:
|
||||
/// this file system and may propagate down for nested file systems.
|
||||
std::error_code setCurrentWorkingDirectory(const Twine &Path) override
|
||||
{
|
||||
Q_UNUSED(Path);
|
||||
Q_UNUSED(Path)
|
||||
Q_UNIMPLEMENTED();
|
||||
return std::make_error_code(std::errc::not_supported);
|
||||
}
|
||||
@@ -133,8 +133,8 @@ public:
|
||||
#endif
|
||||
override
|
||||
{
|
||||
Q_UNUSED(Path);
|
||||
Q_UNUSED(Output);
|
||||
Q_UNUSED(Path)
|
||||
Q_UNUSED(Output)
|
||||
|
||||
Q_UNIMPLEMENTED();
|
||||
return std::make_error_code(std::errc::not_supported);
|
||||
|
@@ -818,7 +818,7 @@ void CMakeBuildStep::updateDeploymentData()
|
||||
|
||||
QString install = currentInstallPrefix();
|
||||
FilePath rootDir = cmakeExecutable().withNewPath(stagingDir().path());
|
||||
Q_UNUSED(install);
|
||||
Q_UNUSED(install)
|
||||
|
||||
DeploymentData deploymentData;
|
||||
deploymentData.setLocalInstallRoot(rootDir);
|
||||
|
@@ -50,7 +50,7 @@ Wizard *BaseFileWizardFactory::runWizardImpl(const FilePath &path, Id platform,
|
||||
const QVariantMap &extraValues,
|
||||
bool showWizard)
|
||||
{
|
||||
Q_UNUSED(showWizard);
|
||||
Q_UNUSED(showWizard)
|
||||
QTC_ASSERT(!path.isEmpty(), return nullptr);
|
||||
|
||||
// Create dialog and run it. Ensure that the dialog is deleted when
|
||||
|
@@ -261,7 +261,7 @@ static bool categoryVisible([[maybe_unused]] const Id &id)
|
||||
if (anyOf(list, [id](const QString &str) { return id.toString().contains(str); }))
|
||||
return false;
|
||||
#else
|
||||
Q_UNUSED(id);
|
||||
Q_UNUSED(id)
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
@@ -32,7 +32,7 @@ CtfStatisticsView::CtfStatisticsView(CtfStatisticsModel *model, QWidget *parent)
|
||||
connect(selectionModel(), &QItemSelectionModel::currentChanged, this,
|
||||
[this](const QModelIndex ¤t, const QModelIndex &previous)
|
||||
{
|
||||
Q_UNUSED(previous);
|
||||
Q_UNUSED(previous)
|
||||
QModelIndex index = this->model()->index(current.row(), CtfStatisticsModel::Title);
|
||||
QString title = this->model()->data(index).toString();
|
||||
emit this->eventTypeSelected(title);
|
||||
|
@@ -106,7 +106,7 @@ int CtfTimelineModel::expandedRow(int index) const
|
||||
|
||||
int CtfTimelineModel::collapsedRow(int index) const
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
Q_UNUSED(index)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -90,7 +90,7 @@ public:
|
||||
|
||||
void onModeChanged(Id mode)
|
||||
{
|
||||
Q_UNUSED(mode);
|
||||
Q_UNUSED(mode)
|
||||
// if (mode == Constants::MODE_DEBUG)
|
||||
updateVisibleToolTips();
|
||||
}
|
||||
|
@@ -709,9 +709,8 @@ DockerDevice::DockerDevice()
|
||||
|
||||
setFileAccessFactory([this] { return d->createFileAccess(); });
|
||||
|
||||
setOpenTerminal([this](const Environment &env,
|
||||
const FilePath &workingDir) -> Result<> {
|
||||
Q_UNUSED(env); // TODO: That's the runnable's environment in general. Use it via -e below.
|
||||
setOpenTerminal([this](const Environment &env, const FilePath &workingDir) -> Result<> {
|
||||
Q_UNUSED(env) // TODO: That's the runnable's environment in general. Use it via -e below.
|
||||
|
||||
Result<QString> result = d->updateContainerAccess();
|
||||
|
||||
|
@@ -45,7 +45,7 @@ ExtensionSystem::IPlugin *RemoteSpec::plugin() const
|
||||
|
||||
FilePath RemoteSpec::installLocation(bool inUserFolder) const
|
||||
{
|
||||
Q_UNUSED(inUserFolder);
|
||||
Q_UNUSED(inUserFolder)
|
||||
return {};
|
||||
};
|
||||
|
||||
|
@@ -703,8 +703,8 @@ DOMRange *MacWebKitHelpViewer::findText(NSString *text, bool forward, bool caseS
|
||||
bool MacWebKitHelpViewer::findText(const QString &text, FindFlags flags, bool incremental,
|
||||
bool fromSearch, bool *wrapped)
|
||||
{
|
||||
Q_UNUSED(incremental);
|
||||
Q_UNUSED(fromSearch);
|
||||
Q_UNUSED(incremental)
|
||||
Q_UNUSED(fromSearch)
|
||||
@autoreleasepool {
|
||||
if (wrapped)
|
||||
*wrapped = false;
|
||||
|
@@ -1544,7 +1544,7 @@ void Client::projectClosed(ProjectExplorer::Project *project)
|
||||
|
||||
bool Client::canOpenProject(ProjectExplorer::Project *project)
|
||||
{
|
||||
Q_UNUSED(project);
|
||||
Q_UNUSED(project)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -196,7 +196,7 @@ FullFormattingRequest::FullFormattingRequest(Client *client, TextEditor::TextDoc
|
||||
IFormattingRequest::RequestType FullFormattingRequest::prepareRequest(
|
||||
const QTextCursor &cursor, const TextEditor::TabSettings &settings, LanguageClientFormatter *formatter)
|
||||
{
|
||||
Q_UNUSED(cursor);
|
||||
Q_UNUSED(cursor)
|
||||
if (!canRequest<DocumentFormattingRequest>(m_client, m_document))
|
||||
return std::monostate();
|
||||
const FilePath &filePath = m_document->filePath();
|
||||
|
@@ -731,7 +731,7 @@ void McuSupportTest::test_legacy_createPackagesWithCorrespondingSettings()
|
||||
const McuTargetDescription description = parseDescriptionJson(json.toLocal8Bit());
|
||||
auto [targets, packages]{
|
||||
targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, runLegacy)};
|
||||
Q_UNUSED(targets);
|
||||
Q_UNUSED(targets)
|
||||
|
||||
QSet<Key> settings = transform<QSet<Key>>(packages, [](const auto &package) {
|
||||
return package->settingsKey();
|
||||
@@ -1008,7 +1008,7 @@ void McuSupportTest::test_legacy_createTargetWithToolchainPackages()
|
||||
|
||||
const auto [targets, packages]{
|
||||
targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, runLegacy)};
|
||||
Q_UNUSED(packages);
|
||||
Q_UNUSED(packages)
|
||||
|
||||
verifyTargetToolchains(targets,
|
||||
toolchainFilePath,
|
||||
@@ -1042,7 +1042,7 @@ void McuSupportTest::test_createTargetWithToolchainPackages()
|
||||
const McuTargetDescription description = parseDescriptionJson(json.toLocal8Bit());
|
||||
const auto [targets, packages]{
|
||||
targetsFromDescriptions({description}, settingsMockPtr, sdkPackagePtr, !runLegacy)};
|
||||
Q_UNUSED(packages);
|
||||
Q_UNUSED(packages)
|
||||
|
||||
const auto qtForMCUsSDK = findOrDefault(packages, [](const McuPackagePtr &pkg) {
|
||||
return (pkg->cmakeVariableName() == QUL_CMAKE_VAR);
|
||||
|
@@ -132,7 +132,7 @@ public:
|
||||
};
|
||||
bool setData(int column, const QVariant &data, int role) final
|
||||
{
|
||||
Q_UNUSED(role);
|
||||
Q_UNUSED(role)
|
||||
QTC_ASSERT(column == 1, return false);
|
||||
m_option->setValue(data);
|
||||
return true;
|
||||
|
@@ -25,7 +25,7 @@ inline void MesonOutputParser::addTask(ProjectExplorer::Task task)
|
||||
#ifndef MESONPARSER_DISABLE_TASKS_FOR_TESTS // small hack to allow unit testing without the banana/monkey/jungle
|
||||
ProjectExplorer::TaskHub::addTask(task);
|
||||
#else
|
||||
Q_UNUSED(task);
|
||||
Q_UNUSED(task)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -35,8 +35,8 @@ inline void MesonOutputParser::addTask(ProjectExplorer::Task::TaskType type, con
|
||||
auto task = ProjectExplorer::BuildSystemTask(type, QString("Meson build:%1").arg(line));
|
||||
addTask(task);
|
||||
#else
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(type)
|
||||
Q_UNUSED(line)
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -57,11 +57,11 @@ inline Utils::OutputLineParser::LinkSpecs MesonOutputParser::addTask(
|
||||
addTask(task);
|
||||
addLinkSpecForAbsoluteFilePath(linkSpecs, task.file, task.line, task.column, match, 1);
|
||||
#else
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(line);
|
||||
Q_UNUSED(match);
|
||||
Q_UNUSED(fileCapIndex);
|
||||
Q_UNUSED(lineNumberCapIndex);
|
||||
Q_UNUSED(type)
|
||||
Q_UNUSED(line)
|
||||
Q_UNUSED(match)
|
||||
Q_UNUSED(fileCapIndex)
|
||||
Q_UNUSED(lineNumberCapIndex)
|
||||
#endif
|
||||
return linkSpecs;
|
||||
}
|
||||
|
@@ -718,7 +718,7 @@ bool IDevice::ensureReachable(const FilePath &other) const
|
||||
|
||||
Result<FilePath> IDevice::localSource(const Utils::FilePath &other) const
|
||||
{
|
||||
Q_UNUSED(other);
|
||||
Q_UNUSED(other)
|
||||
return make_unexpected(Tr::tr("localSource() not implemented for this device type."));
|
||||
}
|
||||
|
||||
|
@@ -156,7 +156,7 @@ void JsonFieldPage::Field::setHasUserChanges()
|
||||
|
||||
void JsonFieldPage::Field::fromSettings(const QVariant &value)
|
||||
{
|
||||
Q_UNUSED(value);
|
||||
Q_UNUSED(value)
|
||||
}
|
||||
|
||||
QVariant JsonFieldPage::Field::toSettings() const
|
||||
|
@@ -72,7 +72,10 @@ public:
|
||||
virtual void initializeData(Utils::MacroExpander *expander) { Q_UNUSED(expander) }
|
||||
virtual QWidget *createWidget(const QString &displayName, JsonFieldPage *page) = 0;
|
||||
virtual void setup(JsonFieldPage *page, const QString &name)
|
||||
{ Q_UNUSED(page); Q_UNUSED(name) }
|
||||
{
|
||||
Q_UNUSED(page)
|
||||
Q_UNUSED(name)
|
||||
}
|
||||
|
||||
QString type() const;
|
||||
void setHasUserChanges();
|
||||
|
@@ -159,7 +159,7 @@ void QbsRequestObject::start()
|
||||
const QStringList &stdOut,
|
||||
const QStringList &stdErr,
|
||||
bool success) {
|
||||
Q_UNUSED(workingDir);
|
||||
Q_UNUSED(workingDir)
|
||||
const bool hasOutput = !stdOut.isEmpty() || !stdErr.isEmpty();
|
||||
if (success && !hasOutput)
|
||||
return;
|
||||
|
@@ -100,7 +100,7 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent)
|
||||
m_view, &GraphicsView::updateSelection);
|
||||
|
||||
connect(m_view, &GraphicsView::zoomChanged, [this](double x, double y) {
|
||||
Q_UNUSED(y);
|
||||
Q_UNUSED(y)
|
||||
m_toolbar->setZoom(x);
|
||||
});
|
||||
|
||||
|
@@ -606,7 +606,7 @@ const std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredPropertyName
|
||||
std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSignalNames(const NodeMetaInfo &metaInfo,
|
||||
bool recursive)
|
||||
{
|
||||
Q_UNUSED(recursive);
|
||||
Q_UNUSED(recursive)
|
||||
|
||||
auto filtered = Utils::filtered(metaInfo.signalNames(), [](const PropertyName &name) {
|
||||
if (std::find(priorityListSignals.cbegin(), priorityListSignals.cend(), name)
|
||||
@@ -647,7 +647,7 @@ std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSignalNames(const
|
||||
std::vector<PropertyName> PropertyTreeModel::sortedAndFilteredSlotNames(const NodeMetaInfo &metaInfo,
|
||||
bool recursive)
|
||||
{
|
||||
Q_UNUSED(recursive);
|
||||
Q_UNUSED(recursive)
|
||||
|
||||
auto priorityList = priorityListSlots;
|
||||
auto filtered = Utils::filtered(metaInfo.slotNames(), [priorityList](const PropertyName &name) {
|
||||
|
@@ -72,7 +72,7 @@ int Quick3DFrameModel::rowCount(const QModelIndex &parent) const
|
||||
|
||||
int Quick3DFrameModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(parent)
|
||||
return MaxColumnType;
|
||||
}
|
||||
|
||||
|
@@ -87,8 +87,8 @@ void PythonGenerator::updateProject(QmlProject *project)
|
||||
Regenerates the .qrc resources file
|
||||
*/
|
||||
void PythonGenerator::update(const QSet<QString> &added, const QSet<QString> &removed) {
|
||||
Q_UNUSED(added);
|
||||
Q_UNUSED(removed);
|
||||
Q_UNUSED(added)
|
||||
Q_UNUSED(removed)
|
||||
ResourceGenerator::createQrc(qmlProject());
|
||||
// Generated Python code does not need to be updated
|
||||
};
|
||||
|
@@ -1692,7 +1692,7 @@ Environment QtVersion::qmakeRunEnvironment() const
|
||||
|
||||
void QtVersion::setupQmakeRunEnvironment(Environment &env) const
|
||||
{
|
||||
Q_UNUSED(env);
|
||||
Q_UNUSED(env)
|
||||
}
|
||||
|
||||
bool QtVersion::hasQmlDumpWithRelocatableFlag() const
|
||||
|
@@ -134,7 +134,7 @@ OutputLineParser::LinkSpec QtOutputLineParser::matchLine(const QString &line) co
|
||||
|
||||
OutputLineParser::Result QtOutputLineParser::handleLine(const QString &txt, OutputFormat format)
|
||||
{
|
||||
Q_UNUSED(format);
|
||||
Q_UNUSED(format)
|
||||
const LinkSpec lr = matchLine(txt);
|
||||
if (!lr.target.isEmpty())
|
||||
return Result(Status::Done, {lr});
|
||||
|
@@ -75,7 +75,7 @@ void ObjectsMapDocument::setModified(bool modified)
|
||||
Result<> ObjectsMapDocument::reload(Core::IDocument::ReloadFlag flag,
|
||||
Core::IDocument::ChangeType type)
|
||||
{
|
||||
Q_UNUSED(type);
|
||||
Q_UNUSED(type)
|
||||
if (flag == FlagIgnore)
|
||||
return ResultOk;
|
||||
emit aboutToReload();
|
||||
|
@@ -281,7 +281,7 @@ public:
|
||||
WizardPage *create(JsonWizard *wizard, Id typeId, const QVariant &data) final
|
||||
{
|
||||
Q_UNUSED(wizard)
|
||||
Q_UNUSED(data);
|
||||
Q_UNUSED(data)
|
||||
QTC_ASSERT(canCreate(typeId), return nullptr);
|
||||
return new SquishAUTPage;
|
||||
}
|
||||
|
@@ -584,7 +584,7 @@ void TerminalWidget::dropEvent(QDropEvent *event)
|
||||
|
||||
void TerminalWidget::showEvent(QShowEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
|
||||
if (!m_process)
|
||||
setupPty();
|
||||
|
@@ -550,9 +550,9 @@ bool BookmarkManager::canDropMimeData(const QMimeData *data, Qt::DropAction acti
|
||||
int row, int column,
|
||||
const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(row);
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(row)
|
||||
Q_UNUSED(column)
|
||||
Q_UNUSED(parent)
|
||||
|
||||
if (!(action & supportedDropActions()))
|
||||
return false;
|
||||
@@ -567,7 +567,7 @@ bool BookmarkManager::canDropMimeData(const QMimeData *data, Qt::DropAction acti
|
||||
bool BookmarkManager::dropMimeData(const QMimeData *data, Qt::DropAction action,
|
||||
int row, int column, const QModelIndex &parent)
|
||||
{
|
||||
Q_UNUSED(column);
|
||||
Q_UNUSED(column)
|
||||
|
||||
if (!(action & supportedDropActions()))
|
||||
return false;
|
||||
|
@@ -100,7 +100,7 @@ class TestProvider final : public CompletionAssistProvider
|
||||
public:
|
||||
IAssistProcessor *createProcessor(const AssistInterface *assistInterface) const final
|
||||
{
|
||||
Q_UNUSED(assistInterface);
|
||||
Q_UNUSED(assistInterface)
|
||||
return new TestProcessor(m_items);
|
||||
}
|
||||
QList<AssistProposalItemInterface *> m_items;
|
||||
|
@@ -131,9 +131,9 @@ void PlainTextIndenter::autoIndent(const QTextCursor &cursor,
|
||||
const TabSettings &tabSettings,
|
||||
int cursorPositionInEditor)
|
||||
{
|
||||
Q_UNUSED(cursor);
|
||||
Q_UNUSED(tabSettings);
|
||||
Q_UNUSED(cursorPositionInEditor);
|
||||
Q_UNUSED(cursor)
|
||||
Q_UNUSED(tabSettings)
|
||||
Q_UNUSED(cursorPositionInEditor)
|
||||
}
|
||||
|
||||
} // namespace TextEditor
|
||||
|
@@ -49,7 +49,7 @@ bool TextSuggestion::applyLine(TextEditorWidget *widget)
|
||||
|
||||
bool TextSuggestion::filterSuggestions(TextEditorWidget *widget)
|
||||
{
|
||||
Q_UNUSED(widget);
|
||||
Q_UNUSED(widget)
|
||||
|
||||
QTextCursor c = m_suggestion.range.begin.toTextCursor(sourceDocument());
|
||||
c.setPosition(currentPosition(), QTextCursor::KeepAnchor);
|
||||
|
@@ -34,7 +34,7 @@ VcsOutputLineParser::VcsOutputLineParser() :
|
||||
|
||||
OutputLineParser::Result VcsOutputLineParser::handleLine(const QString &text, OutputFormat format)
|
||||
{
|
||||
Q_UNUSED(format);
|
||||
Q_UNUSED(format)
|
||||
QRegularExpressionMatchIterator it = m_regexp.globalMatch(text);
|
||||
if (!it.hasNext())
|
||||
return Status::NotHandled;
|
||||
|
@@ -474,8 +474,8 @@ void DesignerCustomObjectDataFork::keepBindingFromGettingDeleted(QQmlContext *co
|
||||
const QQuickDesignerSupport::PropertyName &propertyName)
|
||||
{
|
||||
//Refcounting is taking care
|
||||
Q_UNUSED(context);
|
||||
Q_UNUSED(propertyName);
|
||||
Q_UNUSED(context)
|
||||
Q_UNUSED(propertyName)
|
||||
}
|
||||
|
||||
void DesignerCustomObjectDataFork::handleDestroyed()
|
||||
@@ -906,7 +906,7 @@ bool isSubclassOf(QObject *object, const QByteArray &superTypeName)
|
||||
|
||||
void getPropertyCache(QObject *object, QQmlEngine *engine)
|
||||
{
|
||||
Q_UNUSED(engine);
|
||||
Q_UNUSED(engine)
|
||||
QQuickDesignerSupportProperties::getPropertyCache(object);
|
||||
}
|
||||
|
||||
|
@@ -34,7 +34,7 @@ public:
|
||||
public Q_SLOTS:
|
||||
void checkFinished(QObject *o, const QUrl &url)
|
||||
{
|
||||
Q_UNUSED(url);
|
||||
Q_UNUSED(url)
|
||||
if (o) {
|
||||
checkForWindow(o);
|
||||
if (conf && qae) {
|
||||
|
@@ -225,7 +225,7 @@ void testPixmap()
|
||||
pain.end();
|
||||
QPixmap pm = QPixmap::fromImage(im);
|
||||
int i = 1;
|
||||
Q_UNUSED(i);
|
||||
Q_UNUSED(i)
|
||||
}
|
||||
|
||||
void testPlugin()
|
||||
@@ -246,7 +246,7 @@ void testPlugin()
|
||||
|
||||
void stringRefTest(const QString &refstring)
|
||||
{
|
||||
Q_UNUSED(refstring);
|
||||
Q_UNUSED(refstring)
|
||||
}
|
||||
|
||||
void testString()
|
||||
@@ -367,7 +367,7 @@ void testVectorOfList()
|
||||
QVector<QList<int> > *pv = &v;
|
||||
v.append(QList<int>() << 1);
|
||||
v.append(QList<int>() << 2 << 3);
|
||||
Q_UNUSED(pv);
|
||||
Q_UNUSED(pv)
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
@@ -225,7 +225,7 @@ void testPixmap()
|
||||
pain.end();
|
||||
QPixmap pm = QPixmap::fromImage(im);
|
||||
int i = 1;
|
||||
Q_UNUSED(i);
|
||||
Q_UNUSED(i)
|
||||
}
|
||||
|
||||
void testPlugin()
|
||||
@@ -246,7 +246,7 @@ void testPlugin()
|
||||
|
||||
void stringRefTest(const QString &refstring)
|
||||
{
|
||||
Q_UNUSED(refstring);
|
||||
Q_UNUSED(refstring)
|
||||
}
|
||||
|
||||
void testString()
|
||||
@@ -367,7 +367,7 @@ void testVectorOfList()
|
||||
QVector<QList<int> > *pv = &v;
|
||||
v.append(QList<int>() << 1);
|
||||
v.append(QList<int>() << 2 << 3);
|
||||
Q_UNUSED(pv);
|
||||
Q_UNUSED(pv)
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
Reference in New Issue
Block a user