This is an automated email from the ASF dual-hosted git repository. mseidel pushed a commit to branch AOO42X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 973eedc55351462ba717e9af8d70bfd85445bef4 Author: Arrigo Marchiori <[email protected]> AuthorDate: Thu Apr 15 21:39:19 2021 +0200 Give the new variable a better name (cherry picked from commit a524e3b9fa2406b2d2d0639635ac5f2826f38374) --- main/cui/source/dialogs/about.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/cui/source/dialogs/about.cxx b/main/cui/source/dialogs/about.cxx index ddfc45a..91e5c3c 100644 --- a/main/cui/source/dialogs/about.cxx +++ b/main/cui/source/dialogs/about.cxx @@ -499,14 +499,14 @@ const rtl::OUString AboutDialog::GetBuildId() const // For better readability, strip the duplicate ProductMajor ("340"). if ( sProductSource.getLength() ) { - sal_Int32 versionLength = sProductSource.getLength() - 3; + sal_Int32 nMajorLength = sProductSource.getLength() - 3; bool bMatchingUPD = ( sProductSource.getLength() >= 3 ) - && ( sBuildId.getLength() >= versionLength ) - && ( sProductSource.copy( 3 ) == sBuildId.copy( 0, versionLength ) ); + && ( sBuildId.getLength() >= nMajorLength ) + && ( sProductSource.copy( 3 ) == sBuildId.copy( 0, nMajorLength ) ); OSL_ENSURE( bMatchingUPD, "BUILDID and ProductSource do not match in their UPD" ); if ( bMatchingUPD ) - sProductSource = sProductSource.copy( 0, sProductSource.getLength() - versionLength ); + sProductSource = sProductSource.copy( 0, sProductSource.getLength() - nMajorLength ); // prepend the product source sBuildIdBuff.insert( 0, sProductSource );
