mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 06:12:47 -06:00
Core, ide: Fixed some warnings
This commit is contained in:
parent
db231a2d4a
commit
3b08038375
3 changed files with 1 additions and 5 deletions
|
|
@ -645,7 +645,6 @@ String GetUserName()
|
|||
::GetUserNameW(temp, &w);
|
||||
return temp;
|
||||
#else
|
||||
char temp[256];
|
||||
return Nvl(GetEnv("USER"), "root");
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -260,10 +260,8 @@ WString::WString(const std::wstring& s)
|
|||
|
||||
std::wstring WString::ToStd() const
|
||||
{
|
||||
if(sizeof(wchar_t) == 4) {
|
||||
const wchar *s = begin();
|
||||
if(sizeof(wchar_t) == 4)
|
||||
return std::wstring((const wchar_t *)begin(), GetCount());
|
||||
}
|
||||
if(sizeof(wchar_t) == 2) {
|
||||
Vector<char16> h = ToUtf16(*this);
|
||||
return std::wstring((const wchar_t *)h.begin(), h.GetCount());
|
||||
|
|
|
|||
|
|
@ -376,7 +376,6 @@ void TextCompareCtrl::Paint(Draw& draw)
|
|||
int x = 0;
|
||||
int ii = 0;
|
||||
while(ii < hln.GetCount() - 1) {
|
||||
Font fnt = font;
|
||||
LineEdit::Highlight& h = hln[ii];
|
||||
int l = 1;
|
||||
while(ii + l < hln.GetCount() - 1 && hln[ii + l].paper == h.paper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue