codemaker/source/rustmaker/type_analyzer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5ab202100577563e8fcd66f032181452e94e2015 Author: Mike Kaganski <[email protected]> AuthorDate: Thu Oct 30 09:50:32 2025 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Oct 30 07:00:24 2025 +0100 enable-msvc-analyze: C4310: cast truncates constant value C:/lo/core/codemaker/source/rustmaker/type_analyzer.cxx(165): warning C4310: cast truncates constant value Change-Id: I5be672810ff5501c40d98940c328f8e181a06f39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193175 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/codemaker/source/rustmaker/type_analyzer.cxx b/codemaker/source/rustmaker/type_analyzer.cxx index 75eb4323e89e..a0062218786d 100644 --- a/codemaker/source/rustmaker/type_analyzer.cxx +++ b/codemaker/source/rustmaker/type_analyzer.cxx @@ -162,7 +162,7 @@ void TypeAnalyzer::insertDependency(TypeInfo& typeInfo, std::u16string_view unoT && sort != codemaker::UnoType::Sort::Float && sort != codemaker::UnoType::Sort::Double && sort != codemaker::UnoType::Sort::Char && sort != codemaker::UnoType::Sort::String && sort != codemaker::UnoType::Sort::Type && sort != codemaker::UnoType::Sort::Any - && baseType.indexOf('.') != sal_Int32(std::string::npos)) + && baseType.indexOf('.') >= 0) { typeInfo.namespaces.insert(extractNamespace(baseTypeU)); }
