aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-04-27Backport: Avoid reinterpret_cast. Use size_t argument to UTF8Classify to ↵Neil2-25/+23
avoid casts. Backport of changeset 6750:f42f27b2daf5.
2018-04-26Backport: Change type to avoid casts.Neil2-3/+3
Backport of changeset 6747:6f6113f848b1.
2018-04-26Backport: Specify concrete class for ldTabstops and use directly instead of ↵Neil2-8/+7
copying value of .get() before use. Backport of changeset 6745:f8cf44b26722.
2018-05-06Backport: Use <chrono> for platform-independent timing and remove ↵mitchell3-23/+71
ElapsedTime. Also use #if for painting measurement as there are 7 sections of code to enable. Backport of changeset 6741:af5d9064c25c.
2018-04-25Backport: Use set of coercion functions for transforming WndProc parameters ↵Neil3-44/+63
into pointers. Backport of changeset 6738:5b39367ee7da.
2018-04-25Backport: Removed mention of class that no longer exists.Neil1-1/+0
Backport of changeset 6736:06391d094c6a.
2018-05-06Backport: Remove casts that are not needed since sptr_t and Sci::Position ↵mitchell2-31/+30
are the same type. Backport of changeset 6735:ed52dd761341.
2018-04-24Backport: Feature [feature-requests:#1215]. Make Action move constructor ↵Neil2-10/+1
noexcept and use default implementation. Backport of changeset 6734:e852ad4d15ff.
2018-04-24Backport: Feature [feature-requests:#1215]. Make a parameter const.Neil2-2/+2
Backport of changeset 6733:f6be8941c4b8.
2018-04-22Backport: Remove casts between char and unsigned char where possible.Neil5-12/+11
Backport of changeset 6731:8e06234817c0.
2018-04-21Backport: Code improvements - noexcept and intialization.Neil2-5/+5
Backport of changeset 6728:08bed3a35b28.
2018-04-21Backport: Safety improvements for character code - drop reinterpret_cast, ↵Neil3-13/+12
ensure more variables are initialized, specify noexcept when safe. Backport of changeset 6727:8f4de063e95c.
2018-04-21Backport: Use noexcept in basic data structures where reasonable.Neil7-46/+55
Declare the standard member functions in more classes Backport of changeset 6725:2864bc1b748a.
2018-04-21Backport: Tighten definition of regular expression iterators so they are ↵Neil11-120/+150
noexcept and define all the standard member functions. This cascades to all methods called by the iterators, affecting Document, CellBuffer, Partitioning, SplitVector and UTF-8 and DBCS functions. Other trivial functions declared noexcept. Backport of changeset 6724:f2dfdc0dddd3.
2018-05-06Backport: More const and cast avoidance.mitchell3-13/+14
Backport of changeset 6722:9a20edc44615.
2018-04-20Backport: Mark pointer to constant parameter as const.Neil4-4/+4
Backport of changeset 6721:33bf16396488.
2018-04-20Backport: Use std::count to simplify code. Avoid NULL.Neil1-8/+2
Backport of changeset 6720:a53006dc13cd.
2018-04-20Backport: Make reference argument const as not altered.Neil2-2/+2
Backport of changeset 6719:c366b4a0ae98.
2018-04-20Backport: Undo part of last change as Xcode Clang doesn't like assigning ↵Neil Hodgson2-8/+8
long to int without cast. Backport of changeset 6717:2fec6b5183b7.
2018-04-20Backport: Use standard lround function and remove some casts.Neil1-5/+7
Backport of changeset 6715:6f2eebd823c8.
2018-05-06Backport: Feature [feature-requests:#1215]. Use standard functions in ↵mitchell2-7/+8
prference to RoundXYPosition, XYMinimum, and XYMaximum. Backport of changeset 6713:fadc4c551b6d.
2018-04-20Backport: Feature [feature-requests:#1215]. const in AutoComplete.Neil2-10/+10
Backport of changeset 6712:3a277aadcf2a.
2018-04-20Backport: Feature [feature-requests:#1215]. Fix forwarding reference warnings.Neil3-5/+6
Backport of changeset 6711:8d202ec5a734.
2018-04-20Backport: Avoid casts for DrawIndentGuide.Neil2-7/+7
Backport of changeset 6709:0e77bb893e18.
2018-04-20Backport: Remove casts, drop default argument, use const.Neil2-8/+8
Backport of changeset 6708:6705d3f828c5.
2018-04-19Backport: Templatize MakeUpperCase/MakeLowerCase so they work on char/int ↵Neil1-4/+4
without casts. Backport of changeset 6707:29e80e764b46.
2018-04-19Backport: Use ColourDesired constructor explicitly to make more obvious.Neil3-6/+6
Constructor not marked explicit as may be used in external platform layers. Backport of changeset 6706:73c8bc321f62.
2018-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil9-503/+506
for 64-bit builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened. Backport of changeset 6705:5c0a80740b8c.
2018-04-19Backport: Casts that avoid warnings if Position and Line are different sizes.Neil1-2/+2
Backport of changeset 6704:733be9341cf9.
2018-04-19Backport: Remove potential allocation in destructor which could have thrown.Neil1-1/+0
Backport of changeset 6703:4089e5fd5385.
2018-04-19Backport: Remove unnecessary extra allocation.Neil1-1/+0
Backport of changeset 6702:785f4abd19b6.
2018-04-19Backport: Remove casts by using harmonized types. Drop NUL termination that ↵Neil1-16/+13
is not needed. Backport of changeset 6701:6be1be362cfc.
2018-04-19Backport: SC_PRINT_SCREENCOLOURS doesn't force the background colour of line ↵Nicholai Benalal1-2/+3
numbers white. Backport of changeset 6700:daa126b86c17.
2018-04-18Backport: Avoid an overflow warning seen when compiling for Qt.Neil Hodgson1-1/+2
Backport of changeset 6699:eed960ed3828.
2018-05-05Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than ↵mitchell13-24/+61
2 GigaBytes. This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
2018-04-17Backport: Templatize ContractionState so it can later be switched between ↵Neil1-70/+100
32-bits and 64-bits. Backport of changeset 6695:86c008249ce5.
2018-04-17Backport: Templatize LineVector so it can later be switched between 32-bits ↵Neil1-8/+9
and 64-bits. Backport of changeset 6694:6df3a85efb80.
2018-03-28Backport: Templatize decorations to allow 32-bit or 64-bit positions.Neil3-58/+85
Backport of changeset 6693:7247d1c9c27f.
2018-04-16Backport: Determine if line start or end pattern before loop.Neil1-5/+7
Backport of changeset 6692:1868a36cb306.
2018-04-16Backport: Convert topLine from a screen line to a document line before using ↵Neil1-1/+2
it to find a position. Backport of changeset 6691:372b160180b3.
2018-05-05Backport: Make some changes recommended by clang-tidy.mitchell12-19/+19
Backport of changeset 6687:4cbf987c7590.
2018-04-13Backport: Use 'override' for methods that are overridden.Neil2-58/+60
Group some method declarations and definitions for AddRef/Release and PerLine. Backport of changeset 6684:bd4aae09fb4b.
2018-04-13Backport: Fix bug with regular expression searches failing to match at line ↵Neil1-16/+4
start or end. This was a work-around for infinite loops when replacing empty matches and this is now the application's responsibility. Backport of changeset 6683:bcae0331720b.
2018-03-03Backport: Split LineVector into interface and implementation classes to ↵Neil2-87/+87
allow future choice between 32-bit and 64-bit position implementations. Backport of changeset 6682:59913262eb19.
2018-04-11Backport: Remove workaround for problems with noexcept.Neil1-10/+2
Backport of changeset 6681:84298b2b66f2.
2018-04-11Backport: Set the last X chosen when SCI_REPLACESEL called to ensure macros ↵Neil1-0/+1
work when text insertion followed by line up or down. Backport of changeset 6679:480de02f71f2.
2018-04-05Backport: Backed out changeset: 7402342dc7a3 Caching client rectangle on ↵Neil4-34/+20
EditView. This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based. Backport of changeset 6673:a22abea8d41e.
2018-04-04Backport: Remove redundant forward declaration and move forward declarations ↵Neil1-10/+8
to top. Backport of changeset 6671:4b0f850270d8.
2018-04-04Backport: Cache client rectangle on EditView so it can be used easily inside ↵Neil4-20/+34
EditView. Backport of changeset 6669:7402342dc7a3.
2018-05-05Backport: Split decorations into interface and implementation.mitchell7-90/+171
Backport of changeset 6658:693e737f3155.