fixed compile error on VC++

This commit is contained in:
Dave White 2005-03-14 03:40:57 +00:00
parent 5e99feb156
commit e25a9b15d0

View file

@ -484,12 +484,8 @@ std::string copy_from_clipboard()
}
//convert newlines
std::string str;
while(*buffer != '\0') {
if(*buffer != '\r')
str.push_back(*buffer);
++buffer;
}
std::string str(buffer);
str.erase(std::remove(str.begin(),str.end(),'\r'),str.end());
GlobalUnlock(hglb);
CloseClipboard();