Kaydet (Commit) cc033ec7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Don't use non-Windows sys/time.h

(The comment what the test wants to check quotes noelgrandin on #libreoffice-
dev.)

Change-Id: I8e8980902c8113eb75d24064e68a47e70bc483d6
Reviewed-on: https://gerrit.libreoffice.org/47676Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 17b9ef38
......@@ -8,7 +8,6 @@
*/
#include <rtl/ustring.hxx>
#include <sys/time.h>
#include <o3tl/cow_wrapper.hxx>
#include <vector>
......@@ -57,10 +56,11 @@ struct S2 {
// no warning expected
timeval &operator -= ( timeval &t1, const timeval &t2 );
timeval operator-( const timeval &t1, const timeval &t2 )
// Don't flag stuff where the local var is hidden behind a self-returning operation like -=:
S2 &operator -= ( S2 &t1, const S2 &t2 );
S2 operator-( const S2 &t1, const S2 &t2 )
{
timeval t0 = t1;
S2 t0 = t1;
return t0 -= t2;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment