TONY: Fix a typo in utils comments

This commit is contained in:
Strangerke 2012-06-18 07:58:19 +02:00
parent a46b06a587
commit 6a7fa693ef

View file

@ -127,7 +127,7 @@ char &RMString::operator[](int nIndex) {
/**
* Copies a string
* @param str String to copy
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator=(const RMString &str) {
// Set the new length
@ -154,7 +154,7 @@ const RMString &RMString::operator=(const RMString &str) {
/**
* Copies a char * string
* @param str String to copy
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator=(const char *str) {
// If the source is empty, then destroy the current string buffer
@ -181,7 +181,7 @@ const RMString &RMString::operator=(const char *str) {
/**
* Forms a string from a passed character
* @param ch Character to copy
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator=(const int ch) {
if (ch == '\0') {
@ -227,7 +227,7 @@ void RMString::connect(const char *str, int size) {
/**
* Concatenate a string
* @param str String to concatenate
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator+=(RMString &str) {
connect(str, str.length());
@ -237,7 +237,7 @@ const RMString &RMString::operator+=(RMString &str) {
/**
* Concatenate a string
* @param str String to concatenate
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator+=(const char *str) {
connect(str, strlen(str));
@ -247,7 +247,7 @@ const RMString &RMString::operator+=(const char *str) {
/**
* Concatenate a character
* @param ch Character to concatenate
* @returns Refrence to our string
* @returns Reference to our string
*/
const RMString &RMString::operator+=(const int ch) {
char str[2];
@ -406,7 +406,6 @@ bool RMFileStreamSlow::openFile(Common::File &file) {
return true;
}
bool RMFileStreamSlow::openFile(const char *lpFN) {
// Open file for reading
Common::File f;
@ -419,7 +418,6 @@ bool RMFileStreamSlow::openFile(const char *lpFN) {
return true;
}
RMDataStream &RMFileStreamSlow::operator+=(int nBytes) {
seek(nBytes);
return *this;
@ -433,7 +431,6 @@ bool RMFileStreamSlow::isEOF() {
return (pos() >= _length);
}
int RMFileStreamSlow::seek(int nBytes, RMDSPos where) {
switch (where) {
case START:
@ -450,7 +447,6 @@ int RMFileStreamSlow::seek(int nBytes, RMDSPos where) {
}
}
bool RMFileStreamSlow::read(void *buf, int size) {
uint32 dwRead;
@ -458,7 +454,6 @@ bool RMFileStreamSlow::read(void *buf, int size) {
return ((int)dwRead == size);
}
RMFileStreamSlow &operator>>(RMFileStreamSlow &df, char &var) {
df.read(&var, 1);
return df;
@ -497,7 +492,6 @@ RMFileStreamSlow &operator>>(RMFileStreamSlow &df, uint32 &var) {
return df;
}
/****************************************************************************\
* RMDataStream methods
\****************************************************************************/
@ -996,7 +990,6 @@ RMDataStream &operator>>(RMDataStream &ds, RMRect &rc) {
return ds;
}
/****************************************************************************\
* Resource Update
\****************************************************************************/