Fix typos

Change-Id: Idab619de99649c2fb0a1920844cb07e5ede9691c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209474
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-08-22 10:25:17 +02:00
committed by Julien Nabet
parent 8ff895d2b4
commit 335726898d
23 changed files with 38 additions and 38 deletions
+2 -2
View File
@@ -538,7 +538,7 @@ public:
// inside the current range without control points. Expand current range by
// subdividing the bezier segment.
// Ideal here is a subdivision at the extreme values, so use
// getAllExtremumPositions to get all extremas in one run
// getAllExtremumPositions to get all extrema in one run
std::vector< double > aExtremas;
aExtremas.reserve(4);
@@ -576,7 +576,7 @@ private:
// count of members.
CoordinateDataArray2D maPoints;
// The control point vectors. This vectors are created on demand
// The control point vectors. These vectors are created on demand
// and may be zero.
std::optional< ControlVectorArray2D > moControlVector;
+1 -1
View File
@@ -353,7 +353,7 @@ public:
bool B2DPolyPolygon::isClosed() const
{
// PolyPOlygon is closed when all contained Polygons are closed or
// PolyPolygon is closed when all contained Polygons are closed or
// no Polygon exists.
for(sal_uInt32 a(0); a < count(); a++)
{
+1 -1
View File
@@ -53,7 +53,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b2dpolyrange);
CPPUNIT_TEST(check);
+1 -1
View File
@@ -97,7 +97,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b2dpolygon);
CPPUNIT_TEST(testCubicBezier);
+7 -7
View File
@@ -34,7 +34,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b3dhommatrix);
CPPUNIT_TEST(EmptyMethod);
@@ -53,7 +53,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b3dpoint);
CPPUNIT_TEST(EmptyMethod);
@@ -68,7 +68,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b3drange);
CPPUNIT_TEST(EmptyMethod);
@@ -87,7 +87,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b3dtuple);
CPPUNIT_TEST(EmptyMethod);
@@ -102,7 +102,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(b3dvector);
CPPUNIT_TEST(EmptyMethod);
@@ -116,8 +116,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dtuple);
CPPUNIT_TEST_SUITE_REGISTRATION(basegfx3d::b3dvector);
} // namespace basegfx3d
// this macro creates an empty function, which will called by the RegisterAllFunctions()
// to let the user the possibility to also register some functions by hand.
// 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.
// NOADDITIONAL;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -1
View File
@@ -76,7 +76,7 @@ public:
// Change the following lines only, if you add, remove or rename
// member functions of the current class,
// because these macros are need by auto register mechanism.
// because these macros are needed by auto register mechanism.
CPPUNIT_TEST_SUITE(KeyStopLerpTest);
CPPUNIT_TEST(test);
+1 -1
View File
@@ -60,7 +60,7 @@ bool SbModule::Compile()
{
if( dynamic_cast<const SbObjModule*>( this) == nullptr )
pBasic->ClearAllModuleVars();
RemoveVars(); // remove 'this' Modules variables
RemoveVars(); // remove 'this' Module's variables
// clear all method statics
for (sal_uInt32 i = 0; i < pMethods->Count(); i++)
{
+1 -1
View File
@@ -26,7 +26,7 @@
#include <rtl/ustrbuf.hxx>
#include <memory>
// The conversion of an item onto String was handled via the Put-Methods
// The conversion of an item to a String was handled via the Put-Methods
// of the several data types to avoid duplicated code.
OUString ImpGetString( const SbxValues* p )
@@ -220,7 +220,7 @@ static void cpp_call(
static_assert(sizeof(void *) == sizeof(sal_Int32), "### unexpected size!");
// args
void ** pCppArgs = (void **)alloca( 3 * sizeof(void *) * nParams );
// indices of values this have to be converted (interface conversion cpp<=>uno)
// indices of values that have to be converted (interface conversion cpp<=>uno)
sal_Int32 * pTempIndices = (sal_Int32 *)(pCppArgs + nParams);
// type descriptions for reconversions
typelib_TypeDescription ** ppTempParamTypeDescr = (typelib_TypeDescription **)(pCppArgs + (2 * nParams));
+3 -3
View File
@@ -44,7 +44,7 @@ class CellDropDownItems(UITestCase):
#Close the dialog
#Launch the Select Menu to view the list ans select first item in the list
#Launch the Select Menu to view the list and select first item in the list
gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
@@ -56,7 +56,7 @@ class CellDropDownItems(UITestCase):
xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) )
self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item1")
#Launch the Select Menu to view the list ans select Third item in the list
#Launch the Select Menu to view the list and select Third item in the list
gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
@@ -68,7 +68,7 @@ class CellDropDownItems(UITestCase):
xListItem.executeAction("DOUBLECLICK" , mkPropertyValues({}) )
self.assertEqual(get_cell_by_position(document, 0, 2, 9).getString(), "Item3")
#Launch the Select Menu to view the list ans select Fifth item in the list
#Launch the Select Menu to view the list and select Fifth item in the list
gridwin = xCalcDoc.getChild("grid_window")
gridwin.executeAction("LAUNCH", mkPropertyValues({"SELECTMENU": "", "COL": "2", "ROW": "9"}))
+1 -1
View File
@@ -42,7 +42,7 @@ private:
};
std::unique_ptr<ScAddInDocs> pDocs; // List of using documents
LegacyFuncData* mpFuncData; // Pointer to data in collection
sal_uLong nHandle; // is casted from double to sal_uLong
sal_uLong nHandle; // is cast from double to sal_uLong
ParamType meType; // result of type PTR_DOUBLE or PTR_STRING
bool bValid; // is value valid?
+4 -4
View File
@@ -9349,7 +9349,7 @@ void ScInterpreter::ScExpand()
if (!MustHaveParamCount(nParamCount, 2, 4))
return;
// 4rd argument optional - pad_with
// 4th argument optional - pad_with
std::optional<bool> bDouble;
double fNumber(0.0);
svl::SharedString aString;
@@ -9599,7 +9599,7 @@ void ScInterpreter::ScTextBeforeOrAfter(bool bBefore)
Pop();
}
// 4rd argument optional - match_mode
// 4th argument optional - match_mode
bool bMatchMode = false;
if (nParamCount >= 4)
{
@@ -9611,7 +9611,7 @@ void ScInterpreter::ScTextBeforeOrAfter(bool bBefore)
Pop();
}
// 3nd argument optional - instance_num
// 3rd argument optional - instance_num
sal_Int32 nInstanceNum(1);
if (nParamCount >= 3)
{
@@ -9823,7 +9823,7 @@ void ScInterpreter::ScTextSplit()
Pop();
}
// 4rd argument optional - ignore_empty
// 4th argument optional - ignore_empty
bool bIgnoreEmpty = false;
if (nParamCount >= 4)
{
+1 -1
View File
@@ -1379,7 +1379,7 @@ void ScHTMLLayoutParser::TableOff( const HtmlImportInfo* pInfo )
if ( nRowsPerRow2 > 1 )
{ // Inner
if ( !pTab2 )
{ // nRowsPerRow2 could be've been incremented
{ // nRowsPerRow2 could have been incremented
pTab2 = new InnerMap;
(*pTables)[ nTable ].reset(pTab2);
}
+1 -1
View File
@@ -1312,7 +1312,7 @@ public:
XclImpChTypeGroupRef GetTypeGroup( sal_uInt16 nGroupIdx ) const;
/** Returns the specified default text. */
const XclImpChText* GetDefaultText( XclChTextType eTextType ) const;
/** Returns true, if the plot area has benn moved and/or resized manually. */
/** Returns true, if the plot area has been moved and/or resized manually. */
bool IsManualPlotArea() const;
/** Returns the number of units on the progress bar needed for the chart. */
static std::size_t GetProgressSize() { return 2 * EXC_CHART_PROGRESS_SIZE; }
+1 -1
View File
@@ -44,7 +44,7 @@ ScSortDlg::ScSortDlg(weld::Window* pParent, const SfxItemSet* pArgSet)
ScSortDlg::~ScSortDlg()
{
// tdf#153852 - Make of sort dialog resizable (and remember size)
// tdf#153852 - Make the sort dialog resizable (and remember size)
SvtViewOptions aDlgOpt(EViewType::Dialog, u"SortDialog"_ustr);
aDlgOpt.SetWindowState(m_xDialog->get_window_state(vcl::WindowDataMask::PosSize));
}
+1 -1
View File
@@ -4071,7 +4071,7 @@ void ScGridWindow::DropScroll( const Point& rMousePos )
static bool lcl_TestScenarioRedliningDrop( const ScDocument* pDoc, const ScRange& aDragRange)
{
// Test, if a scenario is affected by a drop when turing on RedLining,
// Test, if a scenario is affected by a drop when turning on RedLining,
bool bReturn = false;
SCTAB nTab = aDragRange.aStart.Tab();
SCTAB nTabCount = pDoc->GetTableCount();
+2 -2
View File
@@ -1348,7 +1348,7 @@ CPPUNIT_TEST_FIXTURE(SdExportTest, testExplodedPdfPatternStroke)
xmlDocUniquePtr pXmlDoc = parseExportedFile();
// ensure the stroke color is this redish color, and not gray which is what it
// ensure the stroke color is this reddish color, and not gray which is what it
// defaults to if the stroke pattern isn't taken into account.
assertXPath(pXmlDoc, "/office:document/office:automatic-styles/style:style[@style:name='gr1']/"
"style:graphic-properties[@svg:stroke-color='#ed1b2d']");
@@ -1372,7 +1372,7 @@ CPPUNIT_TEST_FIXTURE(SdExportTest, testExplodedPdfPatternFill)
xmlDocUniquePtr pXmlDoc = parseExportedFile();
// ensure the stroke color is this redish color, and not gray which is what it
// ensure the stroke color is this reddish color, and not gray which is what it
// defaults to if the stroke pattern isn't taken into account.
assertXPath(pXmlDoc, "/office:document/office:automatic-styles/style:style[@style:name='gr1']/"
"style:graphic-properties[@style:repeat='repeat' and "
+1 -1
View File
@@ -33,7 +33,7 @@ using namespace ::com::sun::star;
// XNotifyingDispatch
void SAL_CALL SdUnoModule::dispatchWithNotification( const util::URL& aURL, const uno::Sequence< beans::PropertyValue >& aArgs, const uno::Reference< frame::XDispatchResultListener >& xListener )
{
// there is no guarantee, that we are holded alive during this method!
// there is no guarantee, that we are held alive during this method!
// May the outside dispatch container will be updated by a CONTEXT_CHANGED
// asynchronous ...
uno::Reference< uno::XInterface > xThis(static_cast< frame::XNotifyingDispatch* >(this));
+1 -1
View File
@@ -715,7 +715,7 @@ namespace
assertXPath(pXmlDoc, xpath, "font-family", u"SimSun");
assertXPath(pXmlDoc, xpath, "font-weight", u"normal");
// FIXME and remove the below comment:
// the chinese chars are shown in pdf as faux italic (fake italic). It is currencly imported wrongly as normal font style.
// the chinese chars are shown in pdf as faux italic (fake italic). It is currently imported wrongly as normal font style.
// See tdf#78427 for how the faux bold problem was handled. Faux italic may be handled using the transformation pattern.
// assertXPath(pXmlDoc, xpath, "font-style", "italic");
+1 -1
View File
@@ -387,7 +387,7 @@ bool SvLinkSource::HasDataLinks() const
return bRet;
}
// sal_True => waitinmg for data
// sal_True => waiting for data
bool SvLinkSource::IsPending() const
{
return false;
+2 -2
View File
@@ -954,7 +954,7 @@ bool SfxDocTplService::setProperty( Content& rContent,
}
}
// To ensure a reloctable office installation, the path to the
// To ensure a relocatable office installation, the path to the
// office installation directory must never be stored directly.
if ( SfxURLRelocator_Impl::propertyCanContainOfficeDir( rPropName ) )
{
@@ -1013,7 +1013,7 @@ bool SfxDocTplService::getProperty(Content& rContent, const OUString& rPropName,
rPropValue = rContent.getPropertyValue( rPropName );
// To ensure a reloctable office installation, the path to the
// To ensure a relocatable office installation, the path to the
// office installation directory must never be stored directly.
if ( SfxURLRelocator_Impl::propertyCanContainOfficeDir( rPropName ) )
{
@@ -829,7 +829,7 @@ void OGLTransitionerImpl::impl_createTexture(
if (epoxy_has_gl_extension("GL_EXT_texture_filter_anisotropic"))
{
//anistropic filtering (to make texturing not suck when looking at polygons from oblique angles)
//anisotropic filtering (to make texturing not suck when looking at polygons from oblique angles)
GLfloat largest_supported_anisotropy;
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &largest_supported_anisotropy);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, largest_supported_anisotropy);
@@ -844,7 +844,7 @@ void OGLTransitionerImpl::impl_createTexture(
if (epoxy_has_gl_extension("GL_EXT_texture_filter_anisotropic"))
{
//anistropic filtering (to make texturing not suck when looking at polygons from oblique angles)
//anisotropic filtering (to make texturing not suck when looking at polygons from oblique angles)
GLfloat largest_supported_anisotropy;
glGetFloatv( GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &largest_supported_anisotropy );
glTexParameterf( GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, largest_supported_anisotropy );
+1 -1
View File
@@ -880,7 +880,7 @@ CPPUNIT_TEST_FIXTURE(SwUnoWriter, testTdf62603)
// Insert 4th string 'who' with default 12 pt font height
xCursorProps->setPropertyValue("CharHeight", uno::Any(float(12.0)));
xText->insertString(xCursor, "who", false);
xCursor->goLeft(3, true); // selects 4rd string
xCursor->goLeft(3, true); // selects 4th string
CPPUNIT_ASSERT_EQUAL(float(12.0), getProperty<float>(xCursorProps, "CharHeight"));
xCursor->collapseToEnd();