mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
drop use of register keyword
The performance benefits are dubious, and it's deprecated in C++11.
This commit is contained in:
parent
b2e4778ea4
commit
1883ab6650
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ filter_filter (GMimeFilter *filter, char *inbuf, size_t inlen, size_t prespace,
|
|||
char **outbuf, size_t *outlen, size_t *outprespace)
|
||||
{
|
||||
GMimeFilterReply *reply = (GMimeFilterReply *) filter;
|
||||
register const char *inptr = inbuf;
|
||||
const char *inptr = inbuf;
|
||||
const char *inend = inbuf + inlen;
|
||||
char *outptr;
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ filter_filter (GMimeFilter *gmime_filter, char *inbuf, size_t inlen, size_t pres
|
|||
{
|
||||
NotmuchFilterDiscardNonTerm *filter = (NotmuchFilterDiscardNonTerm *) gmime_filter;
|
||||
const scanner_state_t *states = filter->states;
|
||||
register const char *inptr = inbuf;
|
||||
const char *inptr = inbuf;
|
||||
const char *inend = inbuf + inlen;
|
||||
char *outptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue