diff options
author | David Tardon <dtardon@redhat.com> | 2011-11-02 14:55:17 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-11-02 14:56:19 +0100 |
commit | b2e0b5f3f5b9a4c6b8483e6fb9855054c84aab92 (patch) | |
tree | 73a0fffd4c90ec3bd3ec4d8b039506f18b25dab0 /vcl/unx/generic | |
parent | 8c4b9f7c6bdecca8ec405272a23c7ca35ca0617e (diff) |
use SAL_N_ELEMENTS
Diffstat (limited to 'vcl/unx/generic')
-rw-r--r-- | vcl/unx/generic/app/saldata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/app/saldata.cxx b/vcl/unx/generic/app/saldata.cxx index 8eb660202483..3f88f359f575 100644 --- a/vcl/unx/generic/app/saldata.cxx +++ b/vcl/unx/generic/app/saldata.cxx @@ -513,7 +513,7 @@ static void PrintXError( Display *pDisplay, XErrorEvent *pEvent ) XGetErrorText( pDisplay, pEvent->error_code, msg, sizeof( msg ) ); #endif std::fprintf( stderr, "X-Error: %s\n", msg ); - if( pEvent->request_code < capacityof( XRequest ) ) + if( pEvent->request_code < SAL_N_ELEMENTS( XRequest ) ) { const char* pName = XRequest[pEvent->request_code]; if( !pName ) |