diff --git a/Repository.mk b/Repository.mk index 6f17bd3dcab5..f9002d087c2a 100644 --- a/Repository.mk +++ b/Repository.mk @@ -847,7 +847,7 @@ $(eval $(call gb_Helper_register_jars,NONE,\ )) endif -# 'test_unittest' is only package delivering to workdir. +# 'test_unittest' is the only package delivering to workdir. # Other packages could be potentially autoinstalled. $(eval $(call gb_Helper_register_packages, \ test_unittest \ diff --git a/UnoControls/source/inc/OConnectionPointHelper.hxx b/UnoControls/source/inc/OConnectionPointHelper.hxx index 96529b20e795..c0e7681b74f4 100644 --- a/UnoControls/source/inc/OConnectionPointHelper.hxx +++ b/UnoControls/source/inc/OConnectionPointHelper.hxx @@ -96,7 +96,7 @@ private: ::osl::Mutex& m_aSharedMutex; css::uno::WeakReference< css::lang::XConnectionPointContainer > m_oContainerWeakReference; // Reference to container-class!. Don't use Reference<...> - // It is a ring-reference => and must be a wekreference! + // It is a ring-reference => and must be a weak-reference! OConnectionPointContainerHelper* m_pContainerImplementation; css::uno::Type m_aInterfaceType; css::uno::Reference< css::uno::XInterface > m_xLock; diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 392d9531976b..400861cba927 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -149,7 +149,7 @@ android/qa/desktop/Makefile (mmeeks's desktop demo, also works to some extent) */ // Assets that are unpacked at run-time into the app's data directory. These -// are files read by non-LO code, fontconfig and freetype for now, that doesn't +// are files read by non-LO code, fontconfig and freetype for now, that don't // understand "/assets" paths. tasks.register("copyUnpackAssets") { description = "copies assets that need to be extracted on the device" diff --git a/basctl/source/basicide/ColorSchemeDialog.cxx b/basctl/source/basicide/ColorSchemeDialog.cxx index 22a27f456a86..bd6725cfbf20 100644 --- a/basctl/source/basicide/ColorSchemeDialog.cxx +++ b/basctl/source/basicide/ColorSchemeDialog.cxx @@ -137,7 +137,7 @@ IMPL_LINK_NOARG(ColorSchemeDialog, OptionHdl, weld::Toggleable&, void) IMPL_LINK_NOARG(ColorSchemeDialog, SelectHdl, weld::ItemView&, void) { // Apply the selected scheme only for the current ModulWinLayout for preview - // Only if the user presses OK the scheme will be applied to all ModulWinLayout(s) + // Only if the user presses OK will the scheme be applied to all ModulWinLayout(s) m_sSelectedSchemeId = m_xSchemeList->get_selected_id(); m_pModulWinLayout->ApplyColorSchemeToCurrentWindow(m_sSelectedSchemeId); } diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx index 32d184866a27..70812a747bb8 100644 --- a/basegfx/source/color/bcolortools.cxx +++ b/basegfx/source/color/bcolortools.cxx @@ -201,7 +201,7 @@ namespace basegfx::utils if (fFact >= 1.0) return BColor(rEndRGB.getRed(), rEndRGB.getGreen(), rEndRGB.getBlue()); - // The hue is undefined for Gray, the rgb2hsl conversion sets it to 0 degree. Thus Gray needs + // The hue is undefined for Gray, the rgb2hsl conversion sets it to 0 degrees. Thus Gray needs // some special treatment in interpolating. const bool bIsStartGray = rStartRGB.getRed() == rStartRGB.getGreen() && rStartRGB.getGreen() == rStartRGB.getBlue(); diff --git a/basegfx/source/curve/b2dcubicbezier.cxx b/basegfx/source/curve/b2dcubicbezier.cxx index 920313130925..fe7297d9ef38 100644 --- a/basegfx/source/curve/b2dcubicbezier.cxx +++ b/basegfx/source/curve/b2dcubicbezier.cxx @@ -191,7 +191,7 @@ namespace basegfx if(nMaxRecursionDepth) { - // divide at 0.5 ad test both edges for angle criteria + // divide at 0.5 and test both edges for angle criteria const B2DPoint aS1L(average(rfPA, rfEA)); const B2DPoint aS1C(average(rfEA, rfEB)); const B2DPoint aS1R(average(rfEB, rfPB)); diff --git a/basegfx/test/B2DHomMatrixTest.cxx b/basegfx/test/B2DHomMatrixTest.cxx index 03a973aa80b1..51bca7dcf61c 100644 --- a/basegfx/test/B2DHomMatrixTest.cxx +++ b/basegfx/test/B2DHomMatrixTest.cxx @@ -219,7 +219,7 @@ public: B2DHomMatrix mat; mat.shearX(3.0); mat.shearY(7.0); - CPPUNIT_ASSERT_EQUAL_MESSAGE("translate", maShear, mat); + CPPUNIT_ASSERT_EQUAL_MESSAGE("shear", maShear, mat); } void multiply() diff --git a/basegfx/test/SvgPathImportExport.cxx b/basegfx/test/SvgPathImportExport.cxx index 3b82a41bc841..08d666252e7c 100644 --- a/basegfx/test/SvgPathImportExport.cxx +++ b/basegfx/test/SvgPathImportExport.cxx @@ -136,7 +136,7 @@ public: // which gets exported now correctly as 'l' and also a point (#4, index 3) // with C2 continuity which produces a 's' statement now. - // The old SVGexport identified nun-used ControlVectors erroneously as Bezier segments + // The old SVGexport identified non-used ControlVectors erroneously as Bezier segments // because the 2nd vector at the start point was used, even when added // with start point was identical to end point. Exactly for that reason // i reworked the B2DPolygon to use prev, next control points. diff --git a/basegfx/test/basegfx3d.cxx b/basegfx/test/basegfx3d.cxx index 03ef7f631099..d9346a55e85a 100644 --- a/basegfx/test/basegfx3d.cxx +++ b/basegfx/test/basegfx3d.cxx @@ -117,7 +117,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector); } // namespace basegfx3d // this macro creates an empty function, which will be called by the RegisterAllFunctions() -// to allow the user the possibility to also register some functions by hand. +// to give the user the possibility to also register some functions by hand. // NOADDITIONAL; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basegfx/test/basegfxtools.cxx b/basegfx/test/basegfxtools.cxx index ae255d05263f..5602840b4af4 100644 --- a/basegfx/test/basegfxtools.cxx +++ b/basegfx/test/basegfxtools.cxx @@ -66,12 +66,12 @@ public: CPPUNIT_ASSERT_MESSAGE("0.51", fTools::equal(fAlpha, 0.025)); std::tie(nIndex, fAlpha) = maKeyStops.lerp(0.9); - CPPUNIT_ASSERT_EQUAL_MESSAGE("0.51", std::ptrdiff_t(1), nIndex); - CPPUNIT_ASSERT_MESSAGE("0.51", fTools::equal(fAlpha, 1.0)); + CPPUNIT_ASSERT_EQUAL_MESSAGE("0.9", std::ptrdiff_t(1), nIndex); + CPPUNIT_ASSERT_MESSAGE("0.9", fTools::equal(fAlpha, 1.0)); std::tie(nIndex, fAlpha) = maKeyStops.lerp(1.0); - CPPUNIT_ASSERT_EQUAL_MESSAGE("0.51", std::ptrdiff_t(1), nIndex); - CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("0.51", 1.0, fAlpha, 1E-12); + CPPUNIT_ASSERT_EQUAL_MESSAGE("1.0", std::ptrdiff_t(1), nIndex); + CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE("1.0", 1.0, fAlpha, 1E-12); } // Change the following lines only, if you add, remove or rename diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index 5a2fd10396fe..c79b87e22094 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -53,7 +53,7 @@ bool SbModule::Compile() GetSbData()->pCompMod = pOld; - // compiling a module, the module-global + // When compiling a module, the module-global // variables of all modules become invalid bool bRet = IsCompiled(); if( bRet ) diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index c312c28be4f9..a1535c5dd1fb 100644 --- a/basic/source/sbx/sbxscan.cxx +++ b/basic/source/sbx/sbxscan.cxx @@ -282,7 +282,7 @@ ErrCode SbxValue::ScanNumIntnl( const OUString& rSrc, double& nVal, bool bSingle return nRetError; } -// The number is prepared unformattedly with the given number of +// The number is prepared without formatting with the given number of // NK-positions. A leading minus is added if applicable. // This routine is public because it's also used by the Put-functions // in the class SbxImpSTRING. diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx index 2f661fdcb499..7e04d802ad14 100644 --- a/basic/source/sbx/sbxstr.cxx +++ b/basic/source/sbx/sbxstr.cxx @@ -262,7 +262,7 @@ void ImpPutString( SbxValues* p, const OUString* n ) } -// Convert string to an array of bytes, preserving unicode (2bytes per character) +// Convert string to an array of bytes, preserving unicode (2 bytes per character) SbxArray* StringToByteArray(const OUString& rStr) { sal_Int32 nArraySize = rStr.getLength() * 2; @@ -298,7 +298,7 @@ SbxArray* StringToByteArray(const OUString& rStr) return pArray; } -// Convert an array of bytes to string (2bytes per character) +// Convert an array of bytes to string (2 bytes per character) OUString ByteArrayToString(SbxArray* pArr) { sal_uInt32 nCount = pArr->Count(); diff --git a/bin/checkExternalLibraries.py b/bin/checkExternalLibraries.py index ef21ba62c241..9f262e316454 100755 --- a/bin/checkExternalLibraries.py +++ b/bin/checkExternalLibraries.py @@ -79,8 +79,8 @@ def get_current_version(libName): return Version("0.0.0") def get_library_list(fileName): - inputProces = "include " + fileName + "\nall:\n\t$(foreach v,$(sort $(filter %TARBALL,$(.VARIABLES))),$(info export $(v)=$($(v))))" - process = subprocess.run(["make", "-q", "-f", "-"], input=bytes(inputProces, 'UTF-8'), stdout=subprocess.PIPE) + inputProcess = "include " + fileName + "\nall:\n\t$(foreach v,$(sort $(filter %TARBALL,$(.VARIABLES))),$(info export $(v)=$($(v))))" + process = subprocess.run(["make", "-q", "-f", "-"], input=bytes(inputProcess, 'UTF-8'), stdout=subprocess.PIPE) libraryList = [] for lib in process.stdout.splitlines(): diff --git a/bin/oss-fuzz-build.sh b/bin/oss-fuzz-build.sh index cd146ef90387..12494b1255a3 100755 --- a/bin/oss-fuzz-build.sh +++ b/bin/oss-fuzz-build.sh @@ -71,7 +71,7 @@ EOF done popd -#starting corpuses +#starting corpora for zip_file in $SRC/*_seed_corpus.zip; do cp $zip_file $OUT done diff --git a/bin/oss-fuzz-setup.sh b/bin/oss-fuzz-setup.sh index cf6a15931d3d..f9e19d537e60 100755 --- a/bin/oss-fuzz-setup.sh +++ b/bin/oss-fuzz-setup.sh @@ -111,8 +111,8 @@ grep -h "rng:attribute name=" libreoffice/schema/odf1.3/OpenDocument-v1.3-schema echo "# attributes' values" >> odf.dict grep -h "rng:value" libreoffice/schema/odf1.3/OpenDocument-v1.3-schema.rng libreoffice/schema/libreoffice/OpenDocument-v1.4+libreoffice-schema.rng | sed -n 's#.*\([^<]*\).*#"\1"#p' | sort | uniq >> odf.dict -#fuzzing corpuses -#afl jpeg, gif, bmp, png, webp +# fuzzing corpora +# afl jpeg, gif, bmp, png, webp curl --no-progress-meter -S -C - -O https://lcamtuf.coredump.cx/afl/demo/afl_testcases.tgz mkdir -p afl-testcases && cd afl-testcases/ && tar xf $SRC/afl_testcases.tgz && cd .. && \ zip -q $SRC/jpgfuzzer_seed_corpus.zip afl-testcases/jpeg*/full/images/* && \ diff --git a/canvas/source/directx/dx_impltools.hxx b/canvas/source/directx/dx_impltools.hxx index d986f7e0a00a..73f9a46dec0b 100644 --- a/canvas/source/directx/dx_impltools.hxx +++ b/canvas/source/directx/dx_impltools.hxx @@ -37,7 +37,7 @@ namespace basegfx class B2DHomMatrix; class B2IRange; class B2DPolyPolygon; -}; +} namespace com::sun::star::geometry { diff --git a/chart2/inc/strings.hrc b/chart2/inc/strings.hrc index fd410d1f078c..9d09aef45c36 100644 --- a/chart2/inc/strings.hrc +++ b/chart2/inc/strings.hrc @@ -146,7 +146,7 @@ #define STR_HISTOGRAM_INVALID_OVERFLOW_UNDERFLOW NC_("STR_HISTOGRAM_INVALID_OVERFLOW_UNDERFLOW", "The underflow value must be lower than the overflow value. Check your input.") #define STR_TYPE_AREA NC_("STR_TYPE_AREA", "Area") #define STR_TYPE_PIE NC_("STR_TYPE_PIE", "Pie") -#define STR_TYPE_OFPIE NC_("STR_TYPE_PIE", "Of-Pie") +#define STR_TYPE_OFPIE NC_("STR_TYPE_OFPIE", "Of-Pie") #define STR_PIE_EXPLODED NC_("STR_PIE_EXPLODED", "Exploded Pie Chart") #define STR_BAR_OF_PIE NC_("STR_BAR_OF_PIE", "Bar-of-pie Chart") #define STR_PIE_OF_PIE NC_("STR_PIE_OF_PIE", "Pie-of-pie Chart")