diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 14:23:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-01-30 16:25:15 +0100 |
commit | d0265c128c5c2c7d12e2f955ccb02aa255a2bf3c (patch) | |
tree | 0560183165036f1c0f53959deadd51c85d6ab19b /sal/osl | |
parent | 9e8f11a722ee9cba37c4692a6ab7d74536261429 (diff) |
loplugin:redundantinline (clang-cl)
Change-Id: Ib6320ddc049e93cca4c5931ad28d1873d34bd8b4
Reviewed-on: https://gerrit.libreoffice.org/67137
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/w32/file_dirvol.cxx | 14 | ||||
-rw-r--r-- | sal/osl/w32/procimpl.cxx | 2 | ||||
-rw-r--r-- | sal/osl/w32/profile.cxx | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx index b8f8ad4e261f..cfdf957ef0de 100644 --- a/sal/osl/w32/file_dirvol.cxx +++ b/sal/osl/w32/file_dirvol.cxx @@ -120,7 +120,7 @@ namespace Component resource_; }; - inline bool is_UNC_path(const sal_Unicode* path) + bool is_UNC_path(const sal_Unicode* path) { return (0 == wcsncmp(UNC_PREFIX, o3tl::toW(path), SAL_N_ELEMENTS(UNC_PREFIX) - 1)); } void parse_UNC_path(const sal_Unicode* path, UNCComponents* puncc) @@ -179,7 +179,7 @@ namespace return has_parent; } - inline bool has_path_parent(const OUString& path) + bool has_path_parent(const OUString& path) { return has_path_parent(path.getStr()); } } @@ -1143,10 +1143,10 @@ SAL_CALL osl_identicalDirectoryItem( oslDirectoryItem a, oslDirectoryItem b) return false; } -static inline bool is_floppy_A_present() +static bool is_floppy_A_present() { return (GetLogicalDrives() & 1); } -static inline bool is_floppy_B_present() +static bool is_floppy_B_present() { return (GetLogicalDrives() & 2); } static bool is_floppy_volume_mount_point(const OUString& path) @@ -1235,7 +1235,7 @@ static UINT get_volume_mount_point_drive_type(const OUString& path) return DRIVE_NO_ROOT_DIR; } -static inline bool is_drivetype_request(sal_uInt32 field_mask) +static bool is_drivetype_request(sal_uInt32 field_mask) { return (field_mask & osl_VolumeInfo_Mask_Attributes); } @@ -1286,7 +1286,7 @@ static oslFileError osl_get_drive_type( return osl_File_E_None; } -static inline bool is_volume_space_info_request(sal_uInt32 field_mask) +static bool is_volume_space_info_request(sal_uInt32 field_mask) { return (field_mask & (osl_VolumeInfo_Mask_TotalSpace | @@ -1312,7 +1312,7 @@ static void get_volume_space_information( } } -static inline bool is_filesystem_attributes_request(sal_uInt32 field_mask) +static bool is_filesystem_attributes_request(sal_uInt32 field_mask) { return (field_mask & (osl_VolumeInfo_Mask_MaxNameLength | diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx index d9cbaaa19617..418ccd40e661 100644 --- a/sal/osl/w32/procimpl.cxx +++ b/sal/osl/w32/procimpl.cxx @@ -87,7 +87,7 @@ namespace /* private */ size_t sum_; }; - inline size_t calc_sum_of_string_lengths(const std::vector<OUString>& string_cont) + size_t calc_sum_of_string_lengths(const std::vector<OUString>& string_cont) { return std::for_each( string_cont.begin(), string_cont.end(), sum_of_string_lengths()); diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index ccf96ff35e03..df5dc0971b4a 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -35,7 +35,7 @@ #include <algorithm> #include <vector> using std::min; -static inline void copy_ustr_n( void *dest, const void *source, size_t length ) { memcpy(dest, source, length*sizeof(sal_Unicode)); } +static void copy_ustr_n( void *dest, const void *source, size_t length ) { memcpy(dest, source, length*sizeof(sal_Unicode)); } #define LINES_INI 32 #define LINES_ADD 10 |