summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2011-05-29 11:20:36 +0700
committerNoel Power <noel.power@novell.com>2011-05-30 12:03:44 +0100
commitb9376ed8d4699f2cb5cd0515ed0768de1ffccee1 (patch)
treebee084ffb02292c0434e665ea0e813c7ab6b0cc3 /sc/source
parentb585a9809cfc6b777c0012cf36d9eddba8a14e32 (diff)
Code Cleanup
* Remove empty and bogus comments * Remove dead codes * Fix typos in comments Released under LGPLv3+/MPL
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/tool/interpr5.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx2
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx10
-rw-r--r--sc/source/ui/inc/AccessibleCsvControl.hxx2
-rw-r--r--sc/source/ui/inc/acredlin.hxx2
-rw-r--r--sc/source/ui/vba/vbarange.hxx2
6 files changed, 10 insertions, 10 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index 3d764e44319b..bf9c8b9c5004 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -1897,7 +1897,7 @@ namespace {
// -----------------------------------------------------------------------------
// Helper methods for LINEST/LOGEST and TREND/GROWTH
// All matrices must already exist and have the needed size, no control tests
-// done. Those methodes, which names start with lcl_T, are adapted to case 3,
+// done. Those methods, which names start with lcl_T, are adapted to case 3,
// where Y (=observed values) is given as row.
// Remember, ScMatrix matrices are zero based, index access (column,row).
// -----------------------------------------------------------------------------
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 00e6e97fdb24..d4e19dd50168 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -1356,7 +1356,7 @@ void ScAccessibleDocument::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
AccessibleEventObject aEvent;
aEvent.EventId = AccessibleEventId::INVALIDATE_ALL_CHILDREN;
aEvent.Source = uno::Reference< XAccessibleContext >(this);
- CommitChange(aEvent); // all childs changed
+ CommitChange(aEvent); // all children changed
}
else if (rRef.GetId() == SC_HINT_ACC_MAKEDRAWLAYER)
{
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index da3edacbb547..496c07ca3666 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -371,7 +371,7 @@ sal_Int32 ScNotesChilds::CheckChanges(const ScPreviewLocationData& rData,
aNote.maNoteText = pNote->GetText();
}
- sal_Int8 nCompare(-1); // if there are no more old childs it is always a new one
+ sal_Int8 nCompare(-1); // if there are no more old children it is always a new one
if (aItr != aEndItr)
nCompare = CompareCell(aNote.maNoteCell, aItr->maNoteCell);
if (nCompare == 0)
@@ -392,10 +392,10 @@ sal_Int32 ScNotesChilds::CheckChanges(const ScPreviewLocationData& rData,
aNote.mpTextHelper = CreateTextHelper(aNote.maNoteText, aNote.maRect, aNote.maNoteCell, aNote.mbMarkNote, nParagraphs + mnOffset);
if (aNote.mpTextHelper)
aNote.mnParaCount = aNote.mpTextHelper->GetChildCount();
- // collect removed childs
+ // collect removed children
CollectChilds(*aItr, rOldParas);
DELETEZ(aItr->mpTextHelper);
- // collect new childs
+ // collect new children
CollectChilds(aNote, rNewParas);
}
bAddNote = sal_True;
@@ -408,13 +408,13 @@ sal_Int32 ScNotesChilds::CheckChanges(const ScPreviewLocationData& rData,
aNote.mpTextHelper = CreateTextHelper(aNote.maNoteText, aNote.maRect, aNote.maNoteCell, aNote.mbMarkNote, nParagraphs + mnOffset);
if (aNote.mpTextHelper)
aNote.mnParaCount = aNote.mpTextHelper->GetChildCount();
- // collect new childs
+ // collect new children
CollectChilds(aNote, rNewParas);
bAddNote = sal_True;
}
else
{
- // collect removed childs
+ // collect removed children
CollectChilds(*aItr, rOldParas);
DELETEZ(aItr->mpTextHelper);
diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx
index 87cd4f8d7d26..f3727774d963 100644
--- a/sc/source/ui/inc/AccessibleCsvControl.hxx
+++ b/sc/source/ui/inc/AccessibleCsvControl.hxx
@@ -175,7 +175,7 @@ public:
virtual sal_Int32 SAL_CALL getAccessibleChildCount()
throw( ::com::sun::star::uno::RuntimeException );
- /** Throws an exception (the ruler does not have childern). */
+ /** Throws an exception (the ruler does not have children). */
virtual XAccessibleRef SAL_CALL getAccessibleChild( sal_Int32 nIndex )
throw( ::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException );
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index f984c2347fe5..c0adc10f513f 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -132,7 +132,7 @@ private:
Selection theCurSel;
SvxTPFilter* pTPFilter;
SvxTPView* pTPView;
- SvxRedlinTable* pTheView; // PB 2006/02/02 #i48648 now SvHeaderTabListBox
+ SvxRedlinTable* pTheView; // #i48648 now SvHeaderTabListBox
Size MinSize;
ScRangeList aRangeList;
ScChangeViewSettings aChangeViewSet;
diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx
index 687128b98757..db4e49d3bf0b 100644
--- a/sc/source/ui/vba/vbarange.hxx
+++ b/sc/source/ui/vba/vbarange.hxx
@@ -306,7 +306,7 @@ public:
// #TODO completely rewrite ScVbaRange, its become a hackfest
// it needs to be closer to ScCellRangeBase in that the underlying
// object model should probably be a ScRangelst.
-// * would be nice to be able to construct a range from an addres only
+// * would be nice to be able to construct a range from an address only
// * or a list of address ( multi-area )
// * object should be a lightweight as possible
// * we shouldn't need hacks like this below