summaryrefslogtreecommitdiff
path: root/extensions/source/scanner
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-12 16:04:04 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-12 17:52:29 +0200
commitb36963c0a6a09f70ca6d8d607dd3249a3496497d (patch)
tree33e06dc8d227957cb31355277fb5cf20b9918628 /extensions/source/scanner
parentb08247a12b43fcd9f86ecd912fce7d69a3e66061 (diff)
Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY code
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
Diffstat (limited to 'extensions/source/scanner')
-rw-r--r--extensions/source/scanner/grid.cxx14
-rw-r--r--extensions/source/scanner/grid.hxx2
-rw-r--r--extensions/source/scanner/sane.hxx12
-rw-r--r--extensions/source/scanner/sanedlg.cxx12
-rw-r--r--extensions/source/scanner/sanedlg.hxx4
-rw-r--r--extensions/source/scanner/scanner.hxx24
-rw-r--r--extensions/source/scanner/scanunx.cxx4
7 files changed, 36 insertions, 36 deletions
diff --git a/extensions/source/scanner/grid.cxx b/extensions/source/scanner/grid.cxx
index e5d8af874cdd..4b40e37fe8fa 100644
--- a/extensions/source/scanner/grid.cxx
+++ b/extensions/source/scanner/grid.cxx
@@ -110,18 +110,18 @@ class GridWindow : public vcl::Window
void computeNew();
static double interpolate( double x, double* pNodeX, double* pNodeY, int nNodes );
- virtual void MouseMove( const MouseEvent& ) SAL_OVERRIDE;
- virtual void MouseButtonDown( const MouseEvent& ) SAL_OVERRIDE;
- virtual void MouseButtonUp( const MouseEvent& ) SAL_OVERRIDE;
+ virtual void MouseMove( const MouseEvent& ) override;
+ virtual void MouseButtonDown( const MouseEvent& ) override;
+ virtual void MouseButtonUp( const MouseEvent& ) override;
void onResize();
- virtual void Resize() SAL_OVERRIDE;
- virtual Size GetOptimalSize() const SAL_OVERRIDE;
+ virtual void Resize() override;
+ virtual Size GetOptimalSize() const override;
void drawLine(vcl::RenderContext& rRenderContext, double x1, double y1, double x2, double y2);
public:
GridWindow(vcl::Window* pParent);
void Init(double* pXValues, double* pYValues, int nValues, bool bCutValues, const BitmapEx &rMarkerBitmap);
virtual ~GridWindow();
- virtual void dispose() SAL_OVERRIDE;
+ virtual void dispose() override;
void setBoundings( double fMinX, double fMinY, double fMaxX, double fMaxY );
@@ -129,7 +129,7 @@ public:
void ChangeMode(int nType);
- virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) SAL_OVERRIDE;
+ virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) override;
};
GridWindow::GridWindow(vcl::Window* pParent)
diff --git a/extensions/source/scanner/grid.hxx b/extensions/source/scanner/grid.hxx
index be4e239e4dd0..5d100b9b3e67 100644
--- a/extensions/source/scanner/grid.hxx
+++ b/extensions/source/scanner/grid.hxx
@@ -50,7 +50,7 @@ public:
GridDialog(double* pXValues, double* pYValues, int nValues,
vcl::Window* pParent, bool bCutValues = true);
virtual ~GridDialog();
- virtual void dispose() SAL_OVERRIDE;
+ virtual void dispose() override;
void setBoundings(double fMinX, double fMinY, double fMaxX, double fMaxY);
double* getNewYValues();
};
diff --git a/extensions/source/scanner/sane.hxx b/extensions/source/scanner/sane.hxx
index 4f755e6edc4d..5b80d3964abf 100644
--- a/extensions/source/scanner/sane.hxx
+++ b/extensions/source/scanner/sane.hxx
@@ -41,13 +41,13 @@ public:
// XInterface
- virtual Any SAL_CALL queryInterface( const Type & rType ) throw( RuntimeException, std::exception ) SAL_OVERRIDE;
- virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { OWeakObject::acquire(); }
- virtual void SAL_CALL release() throw() SAL_OVERRIDE { OWeakObject::release(); }
+ virtual Any SAL_CALL queryInterface( const Type & rType ) throw( RuntimeException, std::exception ) override;
+ virtual void SAL_CALL acquire() throw() override { OWeakObject::acquire(); }
+ virtual void SAL_CALL release() throw() override { OWeakObject::release(); }
- virtual css::awt::Size SAL_CALL getSize() throw(std::exception) SAL_OVERRIDE;
- virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw(std::exception) SAL_OVERRIDE;
- virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(std::exception) SAL_OVERRIDE { return Sequence< sal_Int8 >(); }
+ virtual css::awt::Size SAL_CALL getSize() throw(std::exception) override;
+ virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw(std::exception) override;
+ virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(std::exception) override { return Sequence< sal_Int8 >(); }
// Misc
void lock() { m_aProtector.acquire(); }
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index f180ac3f0626..4e92dd1470e4 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -97,7 +97,7 @@ public:
disposeOnce();
}
- virtual void dispose() SAL_OVERRIDE
+ virtual void dispose() override
{
mpParentDialog.clear();
vcl::Window::dispose();
@@ -129,10 +129,10 @@ public:
return mbDragEnable;
}
- virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
- virtual void MouseButtonDown(const MouseEvent& rMEvt) SAL_OVERRIDE;
- virtual void MouseMove(const MouseEvent& rMEvt) SAL_OVERRIDE;
- virtual void MouseButtonUp(const MouseEvent& rMEvt) SAL_OVERRIDE;
+ virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) override;
+ virtual void MouseButtonDown(const MouseEvent& rMEvt) override;
+ virtual void MouseMove(const MouseEvent& rMEvt) override;
+ virtual void MouseButtonUp(const MouseEvent& rMEvt) override;
Point GetPixelPos(const Point& rIn) const;
Point GetLogicPos(const Point& rIn) const;
@@ -190,7 +190,7 @@ public:
{
ReadDIB(maPreviewBitmap, rStream, true);
}
- virtual Size GetOptimalSize() const SAL_OVERRIDE
+ virtual Size GetOptimalSize() const override
{
Size aSize(LogicToPixel(Size(PREVIEW_WIDTH, PREVIEW_HEIGHT), MAP_APPFONT));
aSize.setWidth(aSize.getWidth()+1);
diff --git a/extensions/source/scanner/sanedlg.hxx b/extensions/source/scanner/sanedlg.hxx
index 5b79a6128ced..f3871721b450 100644
--- a/extensions/source/scanner/sanedlg.hxx
+++ b/extensions/source/scanner/sanedlg.hxx
@@ -105,9 +105,9 @@ private:
public:
SaneDlg( vcl::Window*, Sane&, bool );
virtual ~SaneDlg();
- virtual void dispose() SAL_OVERRIDE;
+ virtual void dispose() override;
- virtual short Execute() SAL_OVERRIDE;
+ virtual short Execute() override;
void UpdateScanArea( bool );
bool getDoScan() { return doScan;}
};
diff --git a/extensions/source/scanner/scanner.hxx b/extensions/source/scanner/scanner.hxx
index c8c42fdad6a5..2603193533ff 100644
--- a/extensions/source/scanner/scanner.hxx
+++ b/extensions/source/scanner/scanner.hxx
@@ -56,26 +56,26 @@ public:
virtual ~ScannerManager();
// XScannerManager
- virtual Sequence< ScannerContext > SAL_CALL getAvailableScanners() throw(std::exception) SAL_OVERRIDE;
- virtual sal_Bool SAL_CALL configureScanner( ScannerContext& scanner_context ) throw( ScannerException, std::exception ) SAL_OVERRIDE;
- virtual sal_Bool SAL_CALL configureScannerAndScan( ScannerContext& scanner_context, const Reference< css::lang::XEventListener >& rxListener ) throw (ScannerException, RuntimeException, std::exception) SAL_OVERRIDE;
- virtual void SAL_CALL startScan( const ScannerContext& scanner_context, const Reference< css::lang::XEventListener >& rxListener ) throw( ScannerException, std::exception ) SAL_OVERRIDE;
- virtual ScanError SAL_CALL getError( const ScannerContext& scanner_context ) throw( ScannerException, std::exception ) SAL_OVERRIDE;
- virtual Reference< css::awt::XBitmap > SAL_CALL getBitmap( const ScannerContext& scanner_context ) throw( ScannerException, std::exception ) SAL_OVERRIDE;
+ virtual Sequence< ScannerContext > SAL_CALL getAvailableScanners() throw(std::exception) override;
+ virtual sal_Bool SAL_CALL configureScanner( ScannerContext& scanner_context ) throw( ScannerException, std::exception ) override;
+ virtual sal_Bool SAL_CALL configureScannerAndScan( ScannerContext& scanner_context, const Reference< css::lang::XEventListener >& rxListener ) throw (ScannerException, RuntimeException, std::exception) override;
+ virtual void SAL_CALL startScan( const ScannerContext& scanner_context, const Reference< css::lang::XEventListener >& rxListener ) throw( ScannerException, std::exception ) override;
+ virtual ScanError SAL_CALL getError( const ScannerContext& scanner_context ) throw( ScannerException, std::exception ) override;
+ virtual Reference< css::awt::XBitmap > SAL_CALL getBitmap( const ScannerContext& scanner_context ) throw( ScannerException, std::exception ) override;
// XBitmap
- virtual css::awt::Size SAL_CALL getSize() throw(std::exception) SAL_OVERRIDE;
- virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw(std::exception) SAL_OVERRIDE;
- virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(std::exception) SAL_OVERRIDE;
+ virtual css::awt::Size SAL_CALL getSize() throw(std::exception) override;
+ virtual Sequence< sal_Int8 > SAL_CALL getDIB() throw(std::exception) override;
+ virtual Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(std::exception) override;
OUString SAL_CALL getImplementationName()
- throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::uno::RuntimeException, std::exception) override;
sal_Bool SAL_CALL supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::uno::RuntimeException, std::exception) override;
css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
+ throw (css::uno::RuntimeException, std::exception) override;
// Misc
static OUString getImplementationName_Static() throw();
diff --git a/extensions/source/scanner/scanunx.cxx b/extensions/source/scanner/scanunx.cxx
index 80b11056b63d..45fd33549cce 100644
--- a/extensions/source/scanner/scanunx.cxx
+++ b/extensions/source/scanner/scanunx.cxx
@@ -151,8 +151,8 @@ class ScannerThread : public osl::Thread
ScannerManager* m_pManager; // just for the disposing call
public:
- virtual void run() SAL_OVERRIDE;
- virtual void onTerminated() SAL_OVERRIDE { delete this; }
+ virtual void run() override;
+ virtual void onTerminated() override { delete this; }
public:
ScannerThread( std::shared_ptr<SaneHolder> pHolder,
const Reference< css::lang::XEventListener >& listener,