mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
Remove const.
This commit is contained in:
parent
f4132c1634
commit
014c06c89c
@ -2587,7 +2587,7 @@ void ScintillaEditView::columnReplace(ColumnModeInfos & cmi, const TCHAR *str)
|
||||
}
|
||||
}
|
||||
|
||||
void ScintillaEditView::columnReplace(ColumnModeInfos & cmi, const int kiInitial, const int kiIncr, const int kiRepeat, const UCHAR format)
|
||||
void ScintillaEditView::columnReplace(ColumnModeInfos & cmi, int initial, int incr, int repeat, const UCHAR format)
|
||||
{
|
||||
assert(kiRepeat > 0);
|
||||
|
||||
@ -2619,11 +2619,11 @@ void ScintillaEditView::columnReplace(ColumnModeInfos & cmi, const int kiInitial
|
||||
// Compute the numbers to be placed at each column.
|
||||
std::vector<int> numbers;
|
||||
{
|
||||
int curNumber = kiInitial;
|
||||
int curNumber = initial;
|
||||
const unsigned int kiMaxSize = cmi.size();
|
||||
while(numbers.size() < kiMaxSize)
|
||||
{
|
||||
for(int i = 0; i < kiRepeat; i++)
|
||||
for(int i = 0; i < repeat; i++)
|
||||
{
|
||||
numbers.push_back(curNumber);
|
||||
if (numbers.size() >= kiMaxSize)
|
||||
@ -2631,14 +2631,14 @@ void ScintillaEditView::columnReplace(ColumnModeInfos & cmi, const int kiInitial
|
||||
break;
|
||||
}
|
||||
}
|
||||
curNumber += kiIncr;
|
||||
curNumber += incr;
|
||||
}
|
||||
}
|
||||
|
||||
assert(numbers.size()> 0);
|
||||
|
||||
const int kibEnd = getNbDigits(*numbers.rbegin(), base);
|
||||
const int kibInit = getNbDigits(kiInitial, base);
|
||||
const int kibInit = getNbDigits(initial, base);
|
||||
const int kib = std::max<int>(kibInit, kibEnd);
|
||||
|
||||
int totalDiff = 0;
|
||||
|
@ -576,7 +576,7 @@ public:
|
||||
ColumnModeInfos getColumnModeSelectInfo();
|
||||
|
||||
void columnReplace(ColumnModeInfos & cmi, const TCHAR *str);
|
||||
void columnReplace(ColumnModeInfos & cmi, const int initial, const int incr, const int repeat, const UCHAR format);
|
||||
void columnReplace(ColumnModeInfos & cmi, int initial, int incr, int repeat, UCHAR format);
|
||||
|
||||
void foldChanged(int line, int levelNow, int levelPrev);
|
||||
void clearIndicator(int indicatorNumber) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user