diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 15:54:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 10:45:01 +0100 |
commit | 455e4011f7052c5d1fb4693a573e0998cf6badc8 (patch) | |
tree | ce9b3b511a3b61b936af7a4970ab4bcbaf620628 /desktop/unx | |
parent | cee129bf17bd604f96e3cfe62d3a55336e248ccd (diff) |
improve constparam loplugin
lots of little fixes to make the logic less pessimistic
Change-Id: If368822984250b11b98c56f5890177a1402e8660
Reviewed-on: https://gerrit.libreoffice.org/44168
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/splashx.c | 4 | ||||
-rw-r--r-- | desktop/unx/source/start.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/desktop/unx/source/splashx.c b/desktop/unx/source/splashx.c index aa01d44b6c61..6bb98f965a91 100644 --- a/desktop/unx/source/splashx.c +++ b/desktop/unx/source/splashx.c @@ -117,7 +117,7 @@ static int splash_load_bmp( struct splash* splash, const char *filename ) return 1; } -static void setup_color( int val[3], color_t *col ) +static void setup_color( int const val[3], color_t *col ) { if ( val[0] < 0 || val[1] < 0 || val[2] < 0 ) return; @@ -160,7 +160,7 @@ static void get_bootstrap_value( int *array, int size, rtlBootstrapHandle handle } // setup -static void splash_setup( struct splash* splash, int barc[3], int framec[3], int posx, int posy, int w, int h ) +static void splash_setup( struct splash* splash, int const barc[3], int const framec[3], int posx, int posy, int w, int h ) { if ( splash->width <= 500 ) { diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index b1c769075075..54fbbcadb532 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -68,7 +68,7 @@ typedef struct { } ChildInfo; static int -child_info_get_status_fd(ChildInfo *info) +child_info_get_status_fd(ChildInfo const *info) { return info->status_fd; } @@ -365,7 +365,7 @@ static int connect_pipe(rtl_uString *pPipePath) } /* Escape: "," -> "\\,", "\0" -> "\\0", "\\" -> "\\\\" */ -static rtl_uString *escape_path(rtl_uString *pToEscape) +static rtl_uString *escape_path(rtl_uString const *pToEscape) { rtl_uString *pBuffer = NULL; sal_Int32 nCapacity = 1000; @@ -405,7 +405,7 @@ static rtl_uString *escape_path(rtl_uString *pToEscape) } /* Send args to the LO instance (using the 'fd' file descriptor) */ -static sal_Bool send_args(int fd, rtl_uString *pCwdPath) +static sal_Bool send_args(int fd, rtl_uString const *pCwdPath) { rtl_uString *pBuffer = NULL, *pTmp = NULL; sal_Int32 nCapacity = 1000; @@ -497,7 +497,7 @@ static sal_Bool send_args(int fd, rtl_uString *pCwdPath) #define BUFFER_LEN 255 /* Read the percent to show in splash. */ -static ProgressStatus read_percent(ChildInfo *info, int *pPercent) +static ProgressStatus read_percent(ChildInfo const *info, int *pPercent) { static char pBuffer[BUFFER_LEN + 1]; static char *pNext = pBuffer; |