Commit graph

4525 commits

Author SHA1 Message Date
Luboš Luňák
715bdfdd8f prevent using RTL_CONSTASCII_* macros with string literal functions
This is to prevent things like by mistake doing match( RTL_CONSTASCII_STRINGPARAM("foo")),
which will call match(const char(&)[N], int=0), where the second argument is the fromIndex
argument.
2012-03-12 13:35:56 +01:00
Luboš Luňák
53fb5f774e OString ctor for string literals without RTL_CONSTASCII stuff 2012-03-12 13:35:56 +01:00
Luboš Luňák
2f5f802bcf rtl_uString_newFromLiteral() for string literals
Drop the recently introduced rtl_uString_newFromAscii_WithLength()
and replace it with this one. The name fits better and it'll be also
a distinct function that specifically includes embedded \0's
(because that's what OUString supports and if a string literal
explicitly includes it, it makes sense to copy it as such).
2012-03-12 13:35:56 +01:00
Stephan Bergmann
73c9b3c59e osl_loadModuleRelativeAscii was erroneously not exported 2012-03-12 12:18:00 +01:00
Stephan Bergmann
25292b154e module.c -> module.cxx, use sal/log.hxx 2012-03-12 11:54:26 +01:00
Luboš Luňák
820c23d397 sal_Bool to bool in SAL_LOG if possible
otherwise clang warns about things like 1 && 1
2012-03-11 09:57:05 +01:00
Matúš Kukan
84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00
Luboš Luňák
a680eba9a0 SAL_DLLPUBLIC_IMPORT with gcc should not be empty
Otherwise when using a template from another module, an instance
of it may end up being non-exported even though it's used by
something exported.
2012-03-10 16:39:22 +01:00
Stephan Bergmann
608fe962cc Let osl::FileStatus getters assert programming errors
...instead of arbitrarily returning certain values when the requested
information is not available.

This reveals a problem in strmunx.cxx that is apparently a regression introduced
with 4a086fca7b "fix SvStream to not require a
custom open or lstat method."
2012-03-09 11:56:10 +01:00
Stephan Bergmann
8840765e29 Fixed @since tags 2012-03-09 09:23:08 +01:00
Josh Heidenreich
af5cc38cac sal file.hxx documentation 2012-03-09 08:49:55 +10:30
Josh Heidenreich
b64352905f Added FileStatus methods isFile, isDirectory, isRegular, isLink 2012-03-09 08:49:54 +10:30
Stephan Bergmann
d5cb0636dc In osl::Thread::create, do not access members after starting the thread
...as the Thread may already have been destroyed by that time.
Also, no need to programmatically check fro programming errors when they
have already been addressed by assert.
2012-03-08 14:11:56 +01:00
Luboš Luňák
5420d7092f use the new license header, this file has been written by me 2012-03-07 15:20:37 +01:00
David Tardon
e319053190 probable intent 2012-03-07 14:01:34 +01:00
David Tardon
bed1173cfe WaE: missing braces around initializer 2012-03-07 14:01:34 +01:00
David Tardon
7daafe70db suppress compiler error when building with -Werror
Return value of the function is set by the inline assembler code.
2012-03-07 14:01:33 +01:00
David Tardon
48b419ceb6 WaE: comparison between signed and unsigned integer expressions 2012-03-07 14:01:33 +01:00
David Tardon
c06ec2fdc2 WaE: comparison between signed and unsigned integer expressions 2012-03-07 14:01:33 +01:00
David Tardon
5e259549cb WaE: redefined macro
SD_RECEIVE, SD_SEND and SD_BOTH have been defined in mingw-w64 headers
since the very beginning. I suppose this was only relevant for mingw32,
which we do not support anymore.
2012-03-07 14:01:32 +01:00
David Tardon
7399447c8a WaE: format '%u' expects argument of type 'unsigned int' 2012-03-07 14:01:32 +01:00
David Tardon
e1eae3267b WaE: declaration of '...' shadows a global declaration
pfn_ADDEREXCLUDEDAPPLICATIONW has been defined in mingw-w64 headers
since the very beginning. I suppose this was only relevant for mingw32,
which we do not support anymore.
2012-03-07 14:01:31 +01:00
David Tardon
5c1e188a55 WaE: suggest parentheses around '&&' within '||' 2012-03-07 14:01:31 +01:00
David Tardon
2a9517575d WaE: comparison between signed and unsigned integer expressions 2012-03-07 14:01:31 +01:00
David Tardon
a81dca114b WaE: declaration of 'aTmpPath' shadows a previous local 2012-03-07 14:01:30 +01:00
David Tardon
9235d38ae4 WaE: deprecated conversion from string constant to 'sal_Char*' 2012-03-07 14:01:30 +01:00
David Tardon
a6b12b7408 WaE: declaration of 'n' shadows a previous local 2012-03-07 14:01:29 +01:00
David Tardon
2b39d8122d WaE: ordered comparison of pointer with integer zero 2012-03-07 14:01:29 +01:00
David Tardon
c5dc896764 WaE: comparison between 'enum oslFileError' and 'enum osl::FileBase::RC' 2012-03-07 14:01:29 +01:00
David Tardon
2a58ae90ba WaE: deprecated conversion from string constant to 'LPWSTR' 2012-03-07 14:01:28 +01:00
David Tardon
b1f9d48ea7 WaE: function declared 'static' but never defined 2012-03-07 14:01:28 +01:00
David Tardon
a60f2238b6 WaE: unused parameter 2012-03-07 14:01:27 +01:00
David Tardon
92b3308ecc WaE: suggest parentheses around '&&' within '||' 2012-03-07 14:01:27 +01:00
David Tardon
72527fa9b8 WaE: deprecated conversion from string constant to 'TCHAR*' 2012-03-07 14:01:27 +01:00
David Tardon
2b945f8ee4 WaE: deleting 'PSID {aka void*}' is undefined 2012-03-07 14:01:26 +01:00
David Tardon
31fdb7f464 WaE: missing braces around initializer 2012-03-07 14:01:26 +01:00
David Tardon
1ee529445b WaE: missing braces around initializer 2012-03-07 14:01:25 +01:00
David Tardon
8c986d3eb3 WaE: "NOMINMAX" redefined 2012-03-07 14:01:25 +01:00
David Tardon
1f370333c5 remove useless include guards 2012-03-07 14:01:25 +01:00
David Tardon
8fc3fc5642 WaE: ignoring #pragma warning 2012-03-07 14:01:24 +01:00
Matúš Kukan
cb83035cd2 sal: add mkdir -p 2012-03-06 10:16:07 +01:00
Luboš Luňák
9db31fc566 rtl_uString_newFromAscii_WithLength() and use it in OUString 2012-03-05 13:11:51 +01:00
Luboš Luňák
40212a207c optimized OUString operators =,==,!= for string literals 2012-03-05 13:11:51 +01:00
Luboš Luňák
9076962550 check that *ascii* string functions are really passed only ASCII 2012-03-05 13:11:50 +01:00
Luboš Luňák
a59f658312 add @since to new OUString ctors 2012-03-05 13:11:50 +01:00
Luboš Luňák
8025d89840 assume string literals to be ASCII-only, rather than UTF-8
ASCII-only handling is much more efficient, and some functionality
like comparison has optimized variants for ASCII
2012-03-05 13:11:50 +01:00
Caolán McNamara
05a8216d03 STAR_ENABLE_FILE_LOCKING was a secret 2012-03-01 10:43:56 +00:00
Korrawit Pruegsanusak
0f6d1ff621 some doxygen warnings cleanup 2012-02-27 21:25:02 +07:00
Julien Nabet
67d01fb5d4 Avoid temporary rtl::OUString 2012-02-26 14:58:33 +01:00
Jan Holesovsky
6cd8586f23 MinGW: snprintf might be present. 2012-02-24 18:54:37 +01:00