Replace auto_ptr

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 55ea90e756)
r14.1.x
Michele Calgaro 4 months ago
parent aa5bb4434e
commit f9ec1da001
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -33,7 +33,7 @@ namespace {
static bool isUTF8(const KURL& url_) {
// read first line to check encoding
std::auto_ptr<Tellico::FileHandler::FileRef> ref(Tellico::FileHandler::fileRef(url_));
std::unique_ptr<Tellico::FileHandler::FileRef> ref(Tellico::FileHandler::fileRef(url_));
if(!ref->isValid()) {
return false;
}

Loading…
Cancel
Save