|
|
@ -33,7 +33,7 @@ namespace {
|
|
|
|
|
|
|
|
|
|
|
|
static bool isUTF8(const KURL& url_) {
|
|
|
|
static bool isUTF8(const KURL& url_) {
|
|
|
|
// read first line to check encoding
|
|
|
|
// 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()) {
|
|
|
|
if(!ref->isValid()) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|