From d7d00253c69587c615dadaec48bb5993842caf30 Mon Sep 17 00:00:00 2001 From: katsuhisa yuasa Date: Sat, 22 May 2021 22:13:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC=E6=8C=87?= =?UTF-8?q?=E6=91=98=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sakura_core/outline/CDlgFuncList.cpp | 20 ++++++++++---------- sakura_core/outline/CFuncInfoArr.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/sakura_core/outline/CDlgFuncList.cpp b/sakura_core/outline/CDlgFuncList.cpp index 70effebb6b..497d9b2a8c 100644 --- a/sakura_core/outline/CDlgFuncList.cpp +++ b/sakura_core/outline/CDlgFuncList.cpp @@ -115,7 +115,7 @@ int CALLBACK CDlgFuncList::CompareFunc_Asc( LPARAM lParam1, LPARAM lParam2, LPAR CDlgFuncList* pcDlgFuncList; pcDlgFuncList = (CDlgFuncList*)lParamSort; - size_t num = pcDlgFuncList->m_pcFuncInfoArr->GetNum(); + int num = pcDlgFuncList->m_pcFuncInfoArr->GetNum(); if (lParam1 < 0 || lParam1 >= num) { return -1; } @@ -555,9 +555,9 @@ void CDlgFuncList::SetData() m_cmemClipText.SetString(L""); /* クリップボードコピー用テキスト */ { const int nBuffLenTag = 13 + wcslen(m_pcFuncInfoArr->m_szFilePath); - const size_t nNum = m_pcFuncInfoArr->GetNum(); + const int nNum = m_pcFuncInfoArr->GetNum(); size_t nBuffLen = 0; - for(size_t i = 0; i < nNum; ++i ){ + for( int i = 0; i < nNum; ++i ){ const CFuncInfo& cFuncInfo = m_pcFuncInfoArr->GetAt(i); nBuffLen += cFuncInfo.m_strFuncName.size(); } @@ -921,9 +921,9 @@ void CDlgFuncList::SetTreeJava( HWND hwndDlg, HTREEITEM hInsertAfter, BOOL bAddC m_cmemClipText.SetString( L"" ); { const int nBuffLenTag = 13 + wcslen(m_pcFuncInfoArr->m_szFilePath); - const size_t nNum = m_pcFuncInfoArr->GetNum(); + const int nNum = m_pcFuncInfoArr->GetNum(); int nBuffLen = 0; - for( size_t i = 0; i < nNum; i++ ){ + for( int i = 0; i < nNum; i++ ){ const CFuncInfo& cFuncInfo = m_pcFuncInfoArr->GetAt(i); nBuffLen += cFuncInfo.m_strFuncName.size(); } @@ -1186,9 +1186,9 @@ void CDlgFuncList::SetListVB (void) m_cmemClipText.SetString( L"" ); { const int nBuffLenTag = 17 + wcslen(m_pcFuncInfoArr->m_szFilePath); - const size_t nNum = m_pcFuncInfoArr->GetNum(); + const int nNum = m_pcFuncInfoArr->GetNum(); int nBuffLen = 0; - for( size_t i = 0; i < nNum; i++ ){ + for( int i = 0; i < nNum; i++ ){ const CFuncInfo& cFuncInfo = m_pcFuncInfoArr->GetAt(i); nBuffLen += cFuncInfo.m_strFuncName.size(); } @@ -1452,7 +1452,7 @@ void CDlgFuncList::SetTree(HTREEITEM hInsertAfter, bool tagjump, bool nolabel) CNativeW text; if( tagjump ){ const WCHAR* pszFileName = cFuncInfo.m_strFileName.c_str(); - if( pszFileName == NULL ){ + if( cFuncInfo.m_strFileName.empty() ){ pszFileName = m_pcFuncInfoArr->m_szFilePath; } text.AllocStringBuffer( @@ -1506,8 +1506,8 @@ void CDlgFuncList::SetDocLineFuncList() CDocLineMgr* pcDocLineMgr = &pcEditView->GetDocument()->m_cDocLineMgr; CFuncListManager().ResetAllFucListMark(pcDocLineMgr, false); - size_t num = m_pcFuncInfoArr->GetNum(); - for( size_t i = 0; i < num; ++i ){ + int num = m_pcFuncInfoArr->GetNum(); + for( int i = 0; i < num; ++i ){ const CFuncInfo& cFuncInfo = m_pcFuncInfoArr->GetAt(i); if( 0 < cFuncInfo.m_nFuncLineCRLF ){ CDocLine* pcDocLine = pcDocLineMgr->GetLine( cFuncInfo.m_nFuncLineCRLF - 1 ); diff --git a/sakura_core/outline/CFuncInfoArr.h b/sakura_core/outline/CFuncInfoArr.h index 5df79f0515..43e74ecf52 100644 --- a/sakura_core/outline/CFuncInfoArr.h +++ b/sakura_core/outline/CFuncInfoArr.h @@ -47,7 +47,7 @@ class CFuncInfoArr { void AppendData( CLogicInt nFuncLineCRLF, CLayoutInt nFuncLineLAYOUT, const WCHAR* pszFuncName, int nInfo, int nDepth = 0 ); /* 配列の最後にデータを追加する 2002.04.01 YAZAKI 深さ導入*/ void AppendData( CLogicInt nLogicLine, CLogicInt nLogicCol, CLayoutInt nLayoutLine, CLayoutInt nLayoutCol, const WCHAR*, const WCHAR*, int, int nDepth = 0 ); /* 配列の最後にデータを追加する 2010.03.01 syat 桁導入*/ - size_t GetNum( void ) const { return m_cFuncInfoArr.size(); } /* 配列要素数を返す */ + int GetNum( void ) const { return (int)m_cFuncInfoArr.size(); } /* 配列要素数を返す */ void Empty( void ); void DUMP( void ); void SetAppendText( int info, std::wstring s, bool overwrite );