Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Unified Diff: samplecode/OverView.cpp

Issue 23498028: Removes uses of unnamed namespace from samplecode. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | samplecode/SampleChart.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samplecode/OverView.cpp
diff --git a/samplecode/OverView.cpp b/samplecode/OverView.cpp
index 3b7183e85aaea1753b551bc857b04903e5aa5aeb..f601afe95b417d5e04eb1d07df58a157792cb7c2 100644
--- a/samplecode/OverView.cpp
+++ b/samplecode/OverView.cpp
@@ -12,15 +12,11 @@
#include "SkCanvas.h"
#include "SkView.h"
-namespace {
-
const int N = 8;
tfarina 2013/09/10 18:14:07 AFAIK, const has internal linkage in C++.
const SkScalar kWidth = SkIntToScalar(640);
const SkScalar kHeight = SkIntToScalar(480);
const char gIsOverview[] = "is-overview";
tfarina 2013/09/10 00:10:18 $ nm out/Debug/obj/samplecode/SampleApp.OverView.o
bsalomon 2013/09/11 20:15:27 Is that gIsOverview is treated as a ptr to a const
tfarina 2013/09/11 21:15:21 no. according to cdecl and the right-to-left synt
-} // namespace
-
class OverView : public SkView {
public:
OverView(int count, const SkViewFactory* factories[]);
« no previous file with comments | « no previous file | samplecode/SampleChart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698