mirror of
https://github.com/leozide/leocad.git
synced 2026-07-28 04:07:11 +00:00
Fixed warnings.
This commit is contained in:
@@ -308,10 +308,10 @@ bool lcPiecesLibrary::OpenArchive(const QString& FileName, lcZipFileType ZipFile
|
||||
if (!File->Open(QIODevice::ReadOnly))
|
||||
return false;
|
||||
|
||||
return OpenArchive(std::move(File), FileName, ZipFileType);
|
||||
return OpenArchive(std::move(File), ZipFileType);
|
||||
}
|
||||
|
||||
bool lcPiecesLibrary::OpenArchive(std::unique_ptr<lcFile> File, const QString& FileName, lcZipFileType ZipFileType)
|
||||
bool lcPiecesLibrary::OpenArchive(std::unique_ptr<lcFile> File, lcZipFileType ZipFileType)
|
||||
{
|
||||
std::unique_ptr<lcZipFile> ZipFile(new lcZipFile());
|
||||
|
||||
@@ -1858,7 +1858,7 @@ bool lcPiecesLibrary::LoadBuiltinPieces()
|
||||
std::unique_ptr<lcMemFile> File(new lcMemFile());
|
||||
File->WriteBuffer(Resource.data(), Resource.size());
|
||||
|
||||
if (!OpenArchive(std::move(File), "builtin", LC_ZIPFILE_OFFICIAL))
|
||||
if (!OpenArchive(std::move(File), LC_ZIPFILE_OFFICIAL))
|
||||
return false;
|
||||
|
||||
lcMemFile PieceFile;
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@ signals:
|
||||
|
||||
protected:
|
||||
bool OpenArchive(const QString& FileName, lcZipFileType ZipFileType);
|
||||
bool OpenArchive(std::unique_ptr<lcFile> File, const QString& FileName, lcZipFileType ZipFileType);
|
||||
bool OpenArchive(std::unique_ptr<lcFile> File, lcZipFileType ZipFileType);
|
||||
bool OpenDirectory(const QDir& LibraryDir, bool ShowProgress);
|
||||
void ReadArchiveDescriptions(const QString& OfficialFileName, const QString& UnofficialFileName);
|
||||
void ReadDirectoryDescriptions(const QFileInfoList (&FileLists)[LC_NUM_FOLDERTYPES], bool ShowProgress);
|
||||
|
||||
Reference in New Issue
Block a user