commit 4360e5dcfd09df9708f1b3ffd8f8c3ca39b44c44
parent c8504b5efcf234afc2c184498dfc4a09553a22fe
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 15 Dec 2015 12:24:58 -0500
refactoring – use rbegin instead of prev(end())
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/package.cpp b/src/package.cpp
@@ -57,7 +57,7 @@ Version *Package::lastVersion() const
if(m_versions.empty())
return nullptr;
- return *prev(m_versions.end());
+ return *m_versions.rbegin();
}
Path Package::targetPath() const