From d721cc515b1056226c562b2d85870da6f69180a4 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 29 Sep 2015 17:56:36 +0200 Subject: Fix typos Change-Id: I8f4500fc7a901c5cc73634ba6da6b9541452e5ae Reviewed-on: https://gerrit.libreoffice.org/18966 Reviewed-by: Samuel Mehrbrodt Tested-by: Samuel Mehrbrodt --- rsc/inc/rscarray.hxx | 2 +- rsc/inc/rscrange.hxx | 2 +- rsc/inc/rsctop.hxx | 4 ++-- rsc/source/res/rscclass.cxx | 2 +- rsc/source/rscpp/cpp.h | 2 +- rsc/source/rscpp/cpp1.c | 4 ++-- rsc/source/rscpp/cpp2.c | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'rsc') diff --git a/rsc/inc/rscarray.hxx b/rsc/inc/rscarray.hxx index 65a74e9fa5b8..1b7fc3bb9025 100644 --- a/rsc/inc/rscarray.hxx +++ b/rsc/inc/rscarray.hxx @@ -49,7 +49,7 @@ struct RscArrayInst RscInstNode * pNode; }; -/* The tree is sorted against its enum value, not gainst its HashId */ +/* The tree is sorted against its enum value, not against its HashId */ class RscArray : public RscTop { protected: diff --git a/rsc/inc/rscrange.hxx b/rsc/inc/rscrange.hxx index 4739b5792ce2..e34533beef68 100644 --- a/rsc/inc/rscrange.hxx +++ b/rsc/inc/rscrange.hxx @@ -77,7 +77,7 @@ public: RscLongRange( Atom nId, sal_uInt32 nTypId ); virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE; RSCINST Create( RSCINST * pInst, const RSCINST & rDfltInst, bool ) SAL_OVERRIDE; - // sets the alloed range + // sets the allowed range ERRTYPE SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ); // returns the class size in bytes sal_uInt32 Size() SAL_OVERRIDE { return nSize; } diff --git a/rsc/inc/rsctop.hxx b/rsc/inc/rsctop.hxx index f94f574ea98a..43b32ca9d98a 100644 --- a/rsc/inc/rsctop.hxx +++ b/rsc/inc/rsctop.hxx @@ -123,7 +123,7 @@ public: // returns instance at the position virtual RSCINST GetPosEle( const RSCINST & rInst, sal_uInt32 nPos ); - // smove an instance + // move an instance virtual ERRTYPE MovePosEle( const RSCINST & rInst, sal_uInt32 nDestPos, sal_uInt32 nSourcePos ); @@ -163,7 +163,7 @@ public: virtual RSCINST Create( RSCINST * pInst, const RSCINST & rDefInst, bool bOwnClass = false ); - // detroys instance + // destroys instance virtual void Destroy( const RSCINST & rInst ); // checks consistency diff --git a/rsc/source/res/rscclass.cxx b/rsc/source/res/rscclass.cxx index a7c63b827c0c..a16755202bcb 100644 --- a/rsc/source/res/rscclass.cxx +++ b/rsc/source/res/rscclass.cxx @@ -773,7 +773,7 @@ ERRTYPE RscSysDepend::WriteSysDependRc( const RSCINST & rInst, RscWriteRc & rMem ERRTYPE aError; RSCINST aFileName; - // retriebe instance with file name "FILENAME" + // retrieve instance with file name "FILENAME" aFileName = RscClass::GetCopyVar( rInst, pHS->getID( "FILE", true ) ); if( aFileName.IsInst() ) { diff --git a/rsc/source/rscpp/cpp.h b/rsc/source/rscpp/cpp.h index d0432ed5ec14..927f1ba061b8 100644 --- a/rsc/source/rscpp/cpp.h +++ b/rsc/source/rscpp/cpp.h @@ -40,7 +40,7 @@ extern FILE* pDefOut; /* ER */ #define EOS '\0' /* End of string */ #define EOF_CHAR 0 /* Returned by get() on eof */ -#define NULLST ((char *) NULL) /* Pointer to nowhere (linted) */ +#define NULLST ((char *) NULL) /* Pointer to nowhere (linked) */ #define DEF_NOARGS (-1) /* #define foo vs #define foo() */ /* diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c index 7f4e0799b803..02fcb4eb7664 100644 --- a/rsc/source/rscpp/cpp1.c +++ b/rsc/source/rscpp/cpp1.c @@ -94,14 +94,14 @@ int rec_recover = TRUE; /* Unwind recursive macros */ * shouldn't delimit tokens, but we'll worry about that some other * time -- it is more important to prevent infinitly long output lines. * - * instring and inmarcor are parameters to the get() routine which + * instring and inmacro are parameters to the get() routine which * were made global for speed. */ int instring = FALSE; /* TRUE if scanning string */ int inmacro = FALSE; /* TRUE if #defining a macro */ /* - * work[] and workp are used to store one piece of text in a temporay + * work[] and workp are used to store one piece of text in a temporary * buffer. To initialize storage, set workp = work. To store one * character, call save(c); (This will fatally exit if there isn't * room.) To terminate the string, call save(EOS). Note that diff --git a/rsc/source/rscpp/cpp2.c b/rsc/source/rscpp/cpp2.c index 2c2e55094c61..2108f099d83d 100644 --- a/rsc/source/rscpp/cpp2.c +++ b/rsc/source/rscpp/cpp2.c @@ -373,7 +373,7 @@ FILE_LOCAL void doinclude() #ifdef CONTROL_COMMENTS_NOT_ALLOWED while ((c = get()) != '\n' && c != EOF_CHAR) save(c); /* Put it away. */ - unget(); /* Force nl after includee */ + unget(); /* Force nl after include */ /* * The draft is unclear if the following should be done. */ -- cgit