forked from qt-creator/qt-creator
C++: Rename source/setSource to utf8Source/setUtf8Source
Continuinng a previous commit... This is in order to make the interface clearer. Change-Id: Ic1b05217f878578bc84a064927507b75981c47d6 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -579,7 +579,7 @@ Utils::ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targ
|
||||
QString::fromUtf8(typeOfExpression.preprocess(newDeclText.toUtf8()));
|
||||
|
||||
Document::Ptr newDeclDoc = Document::create(QLatin1String("<decl>"));
|
||||
newDeclDoc->setSource(newDeclTextPreprocessed.toUtf8());
|
||||
newDeclDoc->setUtf8Source(newDeclTextPreprocessed.toUtf8());
|
||||
newDeclDoc->parse(Document::ParseDeclaration);
|
||||
newDeclDoc->check();
|
||||
|
||||
@@ -810,7 +810,7 @@ Utils::ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targ
|
||||
|
||||
// don't change the name if it's in a comment
|
||||
if (hasCommentedName(targetFile->cppDocument()->translationUnit(),
|
||||
QLatin1String(targetFile->cppDocument()->source()),
|
||||
QLatin1String(targetFile->cppDocument()->utf8Source()),
|
||||
targetFunctionDeclarator, existingParamIndex))
|
||||
replacementName = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user