Fix typos in code and comments

Change-Id: I47802ff4d8e27e738fde2b5ccb92a7765332eb51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210151
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Andrea Gelmini
2026-08-29 16:19:03 +02:00
committed by Julien Nabet
parent faa15ac06b
commit 5e260045bc
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -122,7 +122,7 @@ std::u16string_view const cSuffixes = u"%&!#@$";
* Helper functions to get/set text in TextEngine using
* the stream interface.
*
* get/setText() only supports tools Strings limited to 64K).
* get/setText() only supports tools Strings limited to 64K.
*/
OUString getTextEngineText (ExtTextEngine& rEngine)
{
@@ -784,7 +784,7 @@ void EditorWindow::HandleAutoCloseParen()
if( aLine.getLength() > 0 && aLine[aSel.GetEnd().GetIndex()-1] != '(' )
{
GetEditView()->InsertText(u")"_ustr);
//leave the cursor on its place: inside the parenthesis
//leave the cursor in its place: inside the parenthesis
TextPaM aEnd(nLine, aSel.GetEnd().GetIndex());
GetEditView()->SetSelection( TextSelection( aEnd, aEnd ) );
}
@@ -805,7 +805,7 @@ void EditorWindow::HandleAutoCloseDoubleQuotes()
if( aLine.getLength() > 0 && !aLine.endsWith("\"") && (aPortions.back().tokenType != TokenType::String) )
{
GetEditView()->InsertText(u"\""_ustr);
//leave the cursor on its place: inside the two double quotes
//leave the cursor in its place: inside the two double quotes
TextPaM aEnd(nLine, aSel.GetEnd().GetIndex());
GetEditView()->SetSelection( TextSelection( aEnd, aEnd ) );
}
@@ -2971,7 +2971,7 @@ std::vector< OUString > UnoTypeCodeCompletetor::GetXIdlClassMethods() const
aRetVect.push_back( rMethod->getName() );
}
}
return aRetVect;//this is empty when cannot code complete
return aRetVect;//this is empty when it cannot code complete
}
std::vector< OUString > UnoTypeCodeCompletetor::GetXIdlClassFields() const
@@ -2985,7 +2985,7 @@ std::vector< OUString > UnoTypeCodeCompletetor::GetXIdlClassFields() const
aRetVect.push_back( rxField->getName() );
}
}
return aRetVect;//this is empty when cannot code complete
return aRetVect;//this is empty when it cannot code complete
}
+2 -2
View File
@@ -31,7 +31,7 @@
// enough, if not we need to increase the size of nArgs member in the Methods
// struct below.
// note: the limitation of 63 args is only for RTL functions defined here and
// does NOT impose a limit on User defined procedures ). This changes is to
// does NOT impose a limit on User defined procedures ). This change is to
// allow us space for a flag to denylist some functions in vba mode
namespace {
@@ -773,7 +773,7 @@ constexpr Method aMethods[] = {
{ u"SLN", SbxDOUBLE, 3 | FUNCTION_ | COMPATONLY_, SbRtl_SLN },
arg(u"Cost", SbxDOUBLE),
arg(u"Double", SbxDOUBLE),
arg(u"Salvage", SbxDOUBLE),
arg(u"Life", SbxDOUBLE),
{ u"SYD", SbxDOUBLE, 4 | FUNCTION_ | COMPATONLY_, SbRtl_SYD },
+1 -1
View File
@@ -440,7 +440,7 @@ public class OOoBean
If no document is loaded and the instance is added to a Java container that
is showing, then this method needs not to be called. If later one of the methods
{@link #loadFromURL loadFromURL}, {@link #loadFromStream loadFromStream1},
{@link #loadFromURL loadFromURL}, {@link #loadFromStream loadFromStream},
or {@link #loadFromByteArray loadFromByteArray}
is called, then the document is automatically displayed.