diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-06-01 19:14:40 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-06-01 19:14:40 -0400 |
commit | b4d153610889c00967521ca31d5429b98547c949 (patch) | |
tree | 4a70565ad85b730422d86a0497c6ec00976d254c /sc/source/ui/view/gridwin2.cxx | |
parent | 3471d7eef30df7e2e1288b8c7708d3f3857c02ae (diff) |
ScUserList and ScUserListData no longer dependent of ScCollection.
Diffstat (limited to 'sc/source/ui/view/gridwin2.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx index dc68f5826d15..b4ad51e3932b 100644 --- a/sc/source/ui/view/gridwin2.cxx +++ b/sc/source/ui/view/gridwin2.cxx @@ -490,11 +490,11 @@ void ScGridWindow::DPLaunchFieldPopupMenu( ScUserList* pUserList = ScGlobal::GetUserList(); if (pUserList) { - sal_uInt16 n = pUserList->GetCount(); + size_t n = pUserList->size(); aUserSortNames.reserve(n); - for (sal_uInt16 i = 0; i < n; ++i) + for (size_t i = 0; i < n; ++i) { - ScUserListData* pData = static_cast<ScUserListData*>((*pUserList)[i]); + const ScUserListData* pData = (*pUserList)[i]; aUserSortNames.push_back(pData->GetString()); } } |