projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f6340
)
fixed: std::string::find* uses string::npos if char isn't found.
author
wsoltys
<wiso@no.way>
Wed, 30 Oct 2013 18:12:46 +0000
(19:12 +0100)
committer
wsoltys
<wiso@no.way>
Wed, 30 Oct 2013 18:12:46 +0000
(19:12 +0100)
xbmc/guilib/cximage.cpp
patch
|
blob
|
history
diff --git
a/xbmc/guilib/cximage.cpp
b/xbmc/guilib/cximage.cpp
index
ef12c33
..
0c79281
100644
(file)
--- a/
xbmc/guilib/cximage.cpp
+++ b/
xbmc/guilib/cximage.cpp
@@
-46,8
+46,8
@@
bool CXImage::LoadImageFromMemory(unsigned char* buffer, unsigned int bufSize, u
memset(&m_image, 0, sizeof(m_image));
std::string strExt = m_strMimeType;
- int nPos = strExt.find('/');
- if (nPos
> -1
)
+ int nPos = strExt.find
_first_of
('/');
+ if (nPos
!= std::string::npos
)
strExt.erase(0, nPos + 1);
if(!m_dll.LoadImageFromMemory(buffer, bufSize, strExt.c_str(), width, height, &m_image))