forked from qt-creator/qt-creator
CppEditor: Do not add redundant access specifier
... when inserting a member function declaration for a definition. Fixes: QTCREATORBUG-5591 Change-Id: Ie85b435a1595832d0085abdcc0a4187d939820e0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -3962,9 +3962,9 @@ protected:
|
||||
const auto insertionPoint = m_headerInsertionPoints.find(spec);
|
||||
if (insertionPoint != m_headerInsertionPoints.end())
|
||||
return *insertionPoint;
|
||||
const InsertionLocation loc = m_locator.methodDeclarationInClass(m_headerFile->fileName(),
|
||||
m_class,
|
||||
spec);
|
||||
const InsertionLocation loc = m_locator.methodDeclarationInClass(
|
||||
m_headerFile->fileName(), m_class, spec,
|
||||
InsertionPointLocator::ForceAccessSpec::Yes);
|
||||
m_headerInsertionPoints.insert(spec, loc);
|
||||
return loc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user