odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
 |   10 +++++-----
 odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx             
   |    8 ++------
 2 files changed, 7 insertions(+), 11 deletions(-)

New commits:
commit 971eb758132994b5dfacf0af456fbb96f1863534
Author:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
AuthorDate: Mon May 6 18:49:34 2024 +0300
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Tue May 7 07:42:35 2024 +0200

    odk/examples: grammar fixes
    
    Also remove outdated comment related to RTL_CONSTASCII_STRINGPARAM
    (only the first line was removed in the past)
    
    Change-Id: Iebef1bf83ab049a96c846e714cb700df4dacd878
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167233
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
index 426caaf361b8..943bf623d109 100644
--- 
a/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
+++ 
b/odk/examples/DevelopersGuide/Components/Addons/ProtocolHandlerAddon_cpp/addon.cxx
@@ -108,7 +108,7 @@ void SAL_CALL Addon::initialize( const Sequence< Any >& 
aArguments )
 
 /**
   * Called by the Office framework.
-  * We are ask to query the given URL and return a dispatch object if the URL
+  * We are asked to query the given URL and return a dispatch object if the URL
   * contains an Add-On command.
   */
 Reference< XDispatch > SAL_CALL Addon::queryDispatch( const URL& aURL, const 
::rtl::OUString& sTargetFrameName, sal_Int32 nSearchFlags )
@@ -129,7 +129,7 @@ Reference< XDispatch > SAL_CALL Addon::queryDispatch( const 
URL& aURL, const ::r
 
 /**
   * Called by the Office framework.
-  * We are ask to execute the given Add-On command URL.
+  * We are asked to execute the given Add-On command URL.
   */
 void SAL_CALL Addon::dispatch( const URL& aURL, const Sequence < PropertyValue 
>& lArgs )
 {
@@ -159,7 +159,7 @@ void SAL_CALL Addon::dispatch( const URL& aURL, const 
Sequence < PropertyValue >
 
 /**
   * Called by the Office framework.
-  * We are ask to query the given sequence of URLs and return dispatch objects 
if the URLs
+  * We are asked to query the given sequence of URLs and return dispatch 
objects if the URLs
   * contain Add-On commands.
   */
 Sequence < Reference< XDispatch > > SAL_CALL Addon::queryDispatches( const 
Sequence < DispatchDescriptor >& seqDescripts )
@@ -175,7 +175,7 @@ Sequence < Reference< XDispatch > > SAL_CALL 
Addon::queryDispatches( const Seque
 
 /**
   * Called by the Office framework.
-  * We are ask to query the given sequence of URLs and return dispatch objects 
if the URLs
+  * We are asked to query the given sequence of URLs and return dispatch 
objects if the URLs
   * contain Add-On commands.
   */
 void SAL_CALL Addon::addStatusListener( const Reference< XStatusListener >& 
xControl, const URL& aURL )
@@ -184,7 +184,7 @@ void SAL_CALL Addon::addStatusListener( const Reference< 
XStatusListener >& xCon
 
 /**
   * Called by the Office framework.
-  * We are ask to query the given sequence of URLs and return dispatch objects 
if the URLs
+  * We are asked to query the given sequence of URLs and return dispatch 
objects if the URLs
   * contain Add-On commands.
   */
 void SAL_CALL Addon::removeStatusListener( const Reference< XStatusListener >& 
xControl, const URL& aURL )
diff --git a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx 
b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
index f8bb34f97cd4..7de5d36a2025 100644
--- a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
+++ b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/string_samples.cxx
@@ -59,10 +59,6 @@ SAL_IMPLEMENT_MAIN()
 
     // numbers can be simply appended
     buf.append(M_PI);
-
-    // lets the compiler count the stringlength, so this is more efficient than
-    // the above appendAscii call, where length of the string must be 
calculated at
-    // runtime
     buf.append(" ) multiplied with ");
     buf.append(n);
     buf.append(" gives ");
@@ -70,10 +66,10 @@ SAL_IMPLEMENT_MAIN()
     buf.append(".");
 
     // now transfer the buffer into the string.
-    // afterwards buffer is empty and may be reused again !
+    // afterwards buffer is empty and may be reused again!
     OUString string = buf.makeStringAndClear();
 
-    // I could of course also used the OStringBuffer directly
+    // You could of course use the OStringBuffer directly to get an OString
     OString oString = rtl::OUStringToOString(string, 
RTL_TEXTENCODING_ASCII_US);
 
     // just to print something

Reply via email to