Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85939e5a authored by bigbiff's avatar bigbiff
Browse files

Thanks to _that, return null if vector is empty

Change-Id: Idc44455dd0c971c876ae283528c4367a82e145bd
parent 4eca40d7
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -247,7 +247,6 @@ void ResourceManager::LoadResources(xml_node<>* resList, ZipArchive* pZip)

	if (!resList)
		return;

	child = resList->first_node("resource");
	while (child != NULL)
	{
+2 −2
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ public:
	virtual ~AnimationResource();

public:
	virtual void* GetResource(void) { return mSurfaces.at(0); }
	virtual void* GetResource(int entry) { return mSurfaces.at(entry); }
	virtual void* GetResource(void) { return mSurfaces.empty() ? NULL : mSurfaces.at(0); }
	virtual void* GetResource(int entry) { return mSurfaces.empty() ? NULL : mSurfaces.at(entry); }
	virtual int GetResourceCount(void) { return mSurfaces.size(); }

protected: