forked from qt-creator/qt-creator
Fix compilation by not using optional from std
Amends 874029809f
Change-Id: I7eee4700a67b429fa2012389c39a0c965443a065
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -679,7 +679,7 @@ bool ClangFormatBaseIndenter::isElectricCharacter(const QChar &ch) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<int> ClangFormat::ClangFormatBaseIndenter::margin() const
|
Utils::optional<int> ClangFormat::ClangFormatBaseIndenter::margin() const
|
||||||
{
|
{
|
||||||
return styleForFile().ColumnLimit;
|
return styleForFile().ColumnLimit;
|
||||||
}
|
}
|
||||||
|
@@ -120,7 +120,7 @@ public:
|
|||||||
int cursorPositionInEditor = -1)
|
int cursorPositionInEditor = -1)
|
||||||
= 0;
|
= 0;
|
||||||
|
|
||||||
virtual Utils::optional<int> margin() const { return std::nullopt; }
|
virtual Utils::optional<int> margin() const { return Utils::nullopt; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QTextDocument *m_doc;
|
QTextDocument *m_doc;
|
||||||
|
Reference in New Issue
Block a user