diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-12-15 10:46:39 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-12-15 10:46:39 +1100 | 
| commit | 7c020de8903c45bcc32795e28cc13a32285513f3 (patch) | |
| tree | 07122e00dc818dd09b200fb7a1e80980ab2699fa /src/Document.cxx | |
| parent | 90990e1c3f2a1ea94c5ff4449f991652e2cd9e14 (diff) | |
| download | scintilla-mirror-7c020de8903c45bcc32795e28cc13a32285513f3.tar.gz | |
Format normalization - whitespace and braces made consistent.
Parameter names added to method declarations.
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index 78aa22794..acf4d9755 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -955,7 +955,7 @@ bool Document::InsertString(int position, const char *s, int insertLength) {  int SCI_METHOD Document::AddData(char *data, int length) {  	try {  		int position = Length(); -		InsertString(position,data, length); +		InsertString(position, data, length);  	} catch (std::bad_alloc &) {  		return SC_STATUS_BADALLOC;  	} catch (...) { @@ -1892,7 +1892,7 @@ void SCI_METHOD Document::DecorationFillRange(int position, int value, int fillL  bool Document::AddWatcher(DocWatcher *watcher, void *userData) {  	WatcherWithUserData wwud(watcher, userData); -	std::vector<WatcherWithUserData>::iterator it =  +	std::vector<WatcherWithUserData>::iterator it =  		std::find(watchers.begin(), watchers.end(), wwud);  	if (it != watchers.end())  		return false; @@ -1901,7 +1901,7 @@ bool Document::AddWatcher(DocWatcher *watcher, void *userData) {  }  bool Document::RemoveWatcher(DocWatcher *watcher, void *userData) { -	std::vector<WatcherWithUserData>::iterator it =  +	std::vector<WatcherWithUserData>::iterator it =  		std::find(watchers.begin(), watchers.end(), WatcherWithUserData(watcher, userData));  	if (it != watchers.end()) {  		watchers.erase(it); | 
