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:
		| @@ -494,10 +494,10 @@ Document::Ptr Document::create(const QString &fileName) | ||||
|     return doc; | ||||
| } | ||||
|  | ||||
| QByteArray Document::source() const | ||||
| QByteArray Document::utf8Source() const | ||||
| { return _source; } | ||||
|  | ||||
| void Document::setSource(const QByteArray &source) | ||||
| void Document::setUtf8Source(const QByteArray &source) | ||||
| { | ||||
|     _source = source; | ||||
|     _translationUnit->setSource(_source.constBegin(), _source.size()); | ||||
| @@ -686,7 +686,7 @@ Document::Ptr Snapshot::documentFromSource(const QByteArray &preprocessedCode, | ||||
|         newDoc->_macroUses = thisDocument->_macroUses; | ||||
|     } | ||||
|  | ||||
|     newDoc->setSource(preprocessedCode); | ||||
|     newDoc->setUtf8Source(preprocessedCode); | ||||
|     return newDoc; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user