Skip to content

Commit 48d912c

Browse files
committed
fixing some tab indenting
1 parent f268a14 commit 48d912c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

include/queue.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ namespace alg
3131
private:
3232
class QueueEmptyException: public std::exception
3333
{
34-
public:
35-
virtual const char * what() const throw()
36-
{
37-
return "Queue is empty.";
38-
}
34+
public:
35+
virtual const char * what() const throw()
36+
{
37+
return "Queue is empty.";
38+
}
3939
};
4040

4141
private:

include/stack.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ class Stack
3232
private:
3333
class StackEmptyException: public std::exception
3434
{
35-
public:
36-
virtual const char * what() const throw()
37-
{
38-
return "stack is empty";
39-
}
35+
public:
36+
virtual const char * what() const throw()
37+
{
38+
return "stack is empty";
39+
}
4040
};
4141

4242
class StackIndexOutOfBoundException: public std::exception
4343
{
44-
public:
45-
virtual const char * what() const throw()
46-
{
47-
return "Index out of bound.";
48-
}
44+
public:
45+
virtual const char * what() const throw()
46+
{
47+
return "Index out of bound.";
48+
}
4949
};
5050

5151
uint32_t m_capacity;// the total capacity

src/queue_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
int main()
88
{
9-
using namespace alg;
9+
using alg::Queue;
1010
const int MAXELEMENT = 20;
1111
Queue<int> Q(MAXELEMENT);
1212
int i;

0 commit comments

Comments
 (0)