diff options
Diffstat (limited to 'desktop/source/pkgchk/unopkg/unopkg_shared.h')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_shared.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_shared.h b/desktop/source/pkgchk/unopkg/unopkg_shared.h index 9db42e908619..ac8322629093 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_shared.h +++ b/desktop/source/pkgchk/unopkg/unopkg_shared.h @@ -23,6 +23,7 @@ #include <osl/diagnose.h> #include <rtl/ustring.hxx> +#include <utility> #include <vector> #define APP_NAME "unopkg" @@ -39,8 +40,8 @@ struct OptionInfo struct LockFileException { - explicit LockFileException(OUString const & sMessage) : - Message(sMessage) {} + explicit LockFileException(OUString sMessage) : + Message(std::move(sMessage)) {} OUString Message; }; @@ -66,7 +67,7 @@ inline bool readOption( bool * flag, OptionInfo const * option_info, sal_uInt32 * pIndex ) { if (isOption( option_info, pIndex )) { - OSL_ASSERT( flag != nullptr ); + assert(flag != nullptr); *flag = true; return true; } |