Commit Graph

43 Commits

Author SHA1 Message Date
Stephan Bergmann
17fe7fc590 Some more loplugin:cstylecast: toolkit
Change-Id: I8f2963e7bbd1053ea12af22424f4f7a0f65a3486
2015-01-20 09:06:52 +01:00
Noel Grandin
7f8f277b94 fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
2015-01-07 11:20:44 +02:00
Noel Grandin
d46b16e1e4 remove unnecessary casts's
left over from our conversion of the SvStream output operators
to more specific methods

Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
2014-09-26 15:25:40 +02:00
Stephan Bergmann
1579d8ed79 Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happy
Change-Id: I536353b86ee023eb630ea89786d2205a628d95e3
2014-08-07 18:42:35 +02:00
Julien Nabet
68741d0055 Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part13
Change-Id: Ieecfd7ccb10c75ac639d0ba8e7cb588607097c2a
2014-05-15 22:52:22 +02:00
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Stephan Bergmann
146c7c5c89 toolkit: sal_Bool -> bool
Change-Id: I5153c4413004d1b50cc503b3e70657bc831a5793
2014-02-24 11:13:42 +01:00
Noel Grandin
15535e32dd convert SvStream::operator>> methods to ReadXXX methods
First, I updated the clang rewriter to do the conversion.
Then I lightly hand-tweaked the output for the few places where
the rewriter messed up, mostly when dealing with calls on "this".

Change-Id: I40a6a977959cd97415c678eafc8507de8aa3b1a9
Reviewed-on: https://gerrit.libreoffice.org/7879
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
2014-02-12 15:31:40 +00:00
Noel Grandin
186b4ebc99 convert specialised SvStream::operator>> methods to ReadXXX methods
as preparation for converting the SvStream::operator>> methods on
primitive types

Change-Id: I62f134bced15c687d6e0d46924f56e8d1c3d95b9
Reviewed-on: https://gerrit.libreoffice.org/7798
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-02-04 22:50:39 +00:00
Matúš Kukan
c1fa1962ec tk: Ctor feature for VCLX classes.
Change-Id: I717638a3df4d6ed71d19f7bf4c2e574b37260739
2014-01-24 12:21:23 +01:00
Noel Grandin
c648d08720 convert SvStream::operator<< overloads to more explicit methods
This is in preparation for more conversion of SvStream::operator<< calls
to use more explicit method names.
This converts the subclasses that have their own convenience overloads
of operator<< to use normal methods.

Change-Id: I5efd5d9a24c264cb86d2471303dd5849bf91ba80
2014-01-16 16:08:34 +01:00
Noel Grandin
b69864f3f8 re-write SvStream operator<< to non-overloaded methods
This is the actual re-write.

Use a clang rewriter to rewrite SvStream::operator<< to methods
like WriteuInt32.
Note that the rewriter is not perfect, and I hand-tweaked the output.
In particular, I had to adjust places doing things like
  (*this) << 1;

Change-Id: I5923eda3f4ebaa8b452b6ef109e726e116235a2a
Reviewed-on: https://gerrit.libreoffice.org/7342
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
2014-01-10 13:26:24 +00:00
Ariel Constenla-Haile
6858934fad Resolves: #i121170# - com::sun::awt::XPrinter API does nothing
(cherry picked from commit 07abf70e9ecfca7e7898929259263bb307766374)

Change-Id: I0b11a4a6337f0928ca43d4eb511831f5f96a246e
2013-06-10 11:26:28 +01:00
Andrew Rist
34a1250e0b Related: #i117765# css.awt.PrinterServer implementation unusable in Basic
from  cws/fs35a by Frank Schoenheit [fs]

(cherry picked from commit e9bfcd0982bcb67071b344da377158fc0d88d8a6)

Conflicts:
	toolkit/inc/toolkit/awt/vclxprinter.hxx
	toolkit/source/awt/vclxprinter.cxx

Change-Id: I96b08d00c7e483891d3c24c90fa52764949add0b

Fix line endings

(cherry picked from commit f4f2c3189e5fc9f6fac57b5a6df0840ecdaaa731)

Conflicts:
	toolkit/inc/toolkit/awt/vclxprinter.hxx
	toolkit/source/awt/vclxprinter.cxx

Change-Id: I88acd74eec39410844030d3cba489e1fe62a91b3
2013-06-10 11:26:28 +01:00
Caolán McNamara
5ade04867f Resolves: #i87883# add a PrinterServer.idl and fix impl
Change-Id: Id351109616737f916d7f4c2715347daa23367281
2013-05-18 13:56:48 +01:00
Luboš Luňák
1946794ae0 mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).

Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07 14:23:11 +02:00
Chr. Rossmanith
c6f9140419 Replace String with OUString in toolkit(vclxprinter.cxx)
Change-Id: I265b413923837aaba47abf242803fae7359f8ea8
Reviewed-on: https://gerrit.libreoffice.org/2771
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-16 17:14:30 +00:00
Michael Meeks
c4008ef546 re-base on ALv2 code. Includes:
tkr41: #117828# office crash fixed . (null pointer) + add unit test
    Patch contributed by Tobias Krause
    http://svn.apache.org/viewvc?view=revision&revision=1172105

    Do not add targets for junit tests when junit is disabled.
    Patch contributed by Andre Fischer
    http://svn.apache.org/viewvc?view=revision&revision=1241508

    remove the OutDev::GetKernPair* stubs completely
    Patch contributed by Herbert Duerr
    http://svn.apache.org/viewvc?view=revision&revision=1179221

    reverting un-necessary OS/2 conditionals.
2012-10-03 16:56:06 +01:00
Arnaud Versini
36a2db3722 Replace usage of rtl_*Memory with equivalent from string.h
Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159
Reviewed-on: https://gerrit.libreoffice.org/734
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-10-01 18:48:05 +00:00
Thomas Arnhold
3770bbbdba Remove superfluous empty lines on top
More than two lines are removed for readability.

Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-09 04:57:58 +02:00
Norbert Thiebaud
9485f3a6d6 targeted string re-work
Change-Id: If929937d8b1243032983b8b379f067a47d2717a4
2012-05-28 18:09:26 -05:00
Thomas Arnhold
135c63c8f9 fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
2012-05-04 15:52:57 +02:00
Stephan Bergmann
877663b9c2 Explicit type in SvStream::operator << call. 2012-01-19 11:39:15 +01:00
Norbert Thiebaud
6a7d81e7a5 remove include of pch header from toolkit 2011-11-27 13:25:40 -06:00
Thomas Arnhold
11d2050780 Move DBG_ERROR to OSL_FAIL 2011-03-02 14:46:42 +01:00
Michael Callahan
040cd5d18f remove obsolete __FAR_DATA 2010-12-06 10:36:19 +00:00
Gert Faller
f39607df60 RTL_CONSTASCII_USTRINGPARAM in libs-gui 08 2010-11-22 22:47:26 +01:00
Norbert Thiebaud
d88b292704 merge vosremoval-mutex.diff
In practice the changeset is 'inspired' by vosremoval-mutex.diff
but was essentially redone manually
2010-10-25 19:55:38 -05:00
Sebastian Spaeth
4905a19032 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:02:15 +02:00
Jens-Heiner Rechtien
8764506704 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Philipp Lohmann
c65c7c60ac #i92516# adapt old deprecated interface to new API 2009-06-17 14:07:26 +00:00
Philipp Lohmann
2280881e94 fix warning 2009-06-11 15:01:42 +00:00
Philipp Lohmann
68e6ca91d5 make compile, need to build an adaptor to new print API 2009-06-11 14:54:05 +00:00
Rüdiger Timm
3b81ca83a2 INTEGRATION: CWS changefileheader (1.9.180); FILE MERGED
2008/03/28 15:40:13 rt 1.9.180.1: #i87441# Change license header to LPGL v3.
2008-04-11 08:19:01 +00:00
Ivo Hinkelmann
73e1d5b88b INTEGRATION: CWS prdiscw (1.8.24); FILE MERGED
2006/11/15 16:59:51 pl 1.8.24.1: #i71571# new printer enumeration
2006-12-20 17:30:20 +00:00
Oliver Bolte
577100ddaf INTEGRATION: CWS sb59 (1.6.16); FILE MERGED
2006/07/21 07:59:25 sb 1.6.16.1: #i67487# Made code warning-free (wntmsci10).
2006-10-12 09:31:24 +00:00
Oliver Bolte
0b0b2b67e8 INTEGRATION: CWS pchfix02 (1.6.40); FILE MERGED
2006/09/01 17:54:20 kaib 1.6.40.1: #i68856# Added header markers and pch files
2006-09-16 11:14:31 +00:00
Jens-Heiner Rechtien
ee63133148 INTEGRATION: CWS warnings01 (1.5.26); FILE MERGED
2005/11/11 16:47:33 pl 1.5.26.1: #i55991# removed warnings
2006-06-19 22:01:15 +00:00
Rüdiger Timm
8ed945129b INTEGRATION: CWS ooo19126 (1.4.336); FILE MERGED
2005/09/05 16:58:08 rt 1.4.336.1: #i54170# Change license header: remove SISSL
2005-09-09 12:13:41 +00:00
Jens-Heiner Rechtien
fd2cf3dc7c MWS_SRX644: migrate branch mws_srx644 -> HEAD 2003-03-27 16:05:12 +00:00
Malte Timmermann
12851e106e #105947# lock solar mutex 2002-12-10 14:14:43 +00:00
Philipp Lohmann
420625e5a5 rtl string api changes 2001-05-11 18:43:39 +00:00
Jens-Heiner Rechtien
8ab086b6cc initial import 2000-09-18 16:07:07 +00:00