1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

Testing - Inspector building on GH #329

Add GitHub Actions for TInspector build and clang-format check
Reorganize QT search to work with native Linux packages
Reorganize build-and-test workflow to have actions
This commit is contained in:
Pasukhin Dmitry
2025-02-02 16:35:20 +01:00
committed by GitHub
parent 16d36a47fc
commit 053e01ec68
9 changed files with 248 additions and 104 deletions

View File

@@ -69,7 +69,7 @@ Standard_Boolean TInspector_Communicator::PluginsDir(TCollection_AsciiString& th
#else
':';
#endif
for (int i = 1; !aPathValue.IsEmpty(); i++)
while (!aPathValue.IsEmpty())
{
Standard_Integer aSepIndex = aPathValue.FirstLocationInSet(aPathSep, 1, aPathValue.Length());
if (aSepIndex <= 1)

View File

@@ -155,7 +155,9 @@ void TInspector_OpenFileDialog::GetPluginRecentlyOpenedFiles(
{
if (!anItemIt.Key().IsEqual("recently_opened_files"))
continue;
#include <Standard_WarningsDisable.hxx>
theFileNames = QString(anItemIt.Value().ToCString()).split(";", QString::SkipEmptyParts);
#include <Standard_WarningsRestore.hxx>
if (theFileNames.size() > RECENT_FILES_CACHE_SIZE)
for (int i = 0; i < theFileNames.size() - RECENT_FILES_CACHE_SIZE; i++)
theFileNames.removeFirst();