fixed compile error on VC++
This commit is contained in:
parent
5e99feb156
commit
e25a9b15d0
1 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue